XP is just a number | |
PerlMonks |
Re: calling a subroutine while Initializing newby neosamuri (Friar) |
on Sep 17, 2006 at 03:06 UTC ( [id://573371]=note: print w/replies, xml ) | Need Help?? |
If you are passing wanting to pass the subroutine to the module(as you are doing above), then the subrutine should be defined in the file that instantiates the object. If you are not wanting to pass the subroutine in to the module, then it should be in the package file and called from the new subroutine.
In Section
Seekers of Perl Wisdom
|
|