in reply to Re: Trying to understand Perl Objects
in thread Trying to understand Perl Objects

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).

  • Comment on Re^2: Trying to understand Perl Objects