toddfreed has asked for the wisdom of the Perl Monks concerning the following question:
package foo; sub woot { print __PACKAGE__; # <-- prints "foo"; print < INSERT ANSWER >; # <-- prints "bar"; } package bar; our @ISA = qw|foo|; package main; bar->woot();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: current/active package
by ikegami (Patriarch) on Sep 24, 2009 at 23:04 UTC | |
by eye (Chaplain) on Sep 25, 2009 at 06:04 UTC | |
by ikegami (Patriarch) on Sep 25, 2009 at 06:06 UTC | |
by rovf (Priest) on Sep 25, 2009 at 07:51 UTC | |
by toddfreed (Novice) on Sep 25, 2009 at 14:10 UTC | |
by ikegami (Patriarch) on Sep 25, 2009 at 15:22 UTC |