Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi, I would also do so... If you were using OO then calling B->foo() would be the best method, but on your example you're not using OO only funcion call, and when calling it with B->foo(), you must know that the first argument in @_ is the package name 'B'. So go for B::foo() or take a look at the Exporter module. Also is good to read the manuals about perlref, perlboot. There was also a module, think it was by Brian D Foy, something to make alias to the package names inside your package scope... Regards,
fmerges at irc.freenode.net
In reply to Re^2: perl deferring die to calling method
by fmerges
|
|