Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Modules as executable scripts?by friedo (Prior) |
on Jun 15, 2007 at 06:25 UTC ( [id://621406]=note: print w/replies, xml ) | Need Help?? |
perl -MYour::Package -e run Note that this only works if Your::Package exports run by default, since code executed via -e runs in the main package.
In Section
Seekers of Perl Wisdom
|
|