P is for Practical | |
PerlMonks |
Re^2: Trying to understand Perl Objectsby morgon (Priest) |
on Apr 05, 2009 at 01:22 UTC ( [id://755496]=note: print w/replies, xml ) | Need Help?? |
The problem is that calling a method via $object->method always means Perl has do a lookup of the sub to be invoked via the namespace (and possibly walking up the @ISA-chain).
This of course is not free - but do you really want to write large applications in a purely imperative way? (functional by the way programming is something else - think Lisp or Haskell for that).
In Section
Seekers of Perl Wisdom
|
|