On Jul 20, 6:09 pm, shawnhco...@gmail.com (Shawn H Corey) wrote: > On 11-07-20 07:03 PM, Uri Guttman wrote: > > > the other is a class method call. it has two major differences. first it > > will pass its class (or object, the arg before ->) as the first arg in > > the call. the second thing is that it will search the class hierarchy > > (using the package global's @ISA) to find that method if it isn't in the > > Lib class. > > ... > > The difference here is that `Foo:bar()` gives a run-time error; where > `Foo->bar()` gives a compile-time error. > ...
An INIT{} which executes just after compilation can help pinpoint when runtime starts: .... INIT { print "runtime starting...\n"; } __END__ runtime starting... foo foo Undefined subroutine &Foo::bar called .... -- Charles DeRykus -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/