Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: calling perl subroutines in other filesby Rhys (Pilgrim) |
on Sep 26, 2004 at 12:11 UTC ( [id://393929]=note: print w/replies, xml ) | Need Help?? |
Drock,
While there are several ways that you can get around creating a module and doing use Mymod, it's not really a wise thing to do for several reasons. The main reasons are:
Seriously, though, when you consider that h2xs does most of the prep work for you, making a module out of a sub is pretty much cut, paste, change a few things in the header, save, done. --J
In Section
Seekers of Perl Wisdom
|
|