in reply to Re: Modules as executable scripts?
in thread Modules as executable scripts?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Modules as executable scripts?
by aufflick (Deacon) on Jun 19, 2007 at 12:33 UTC |
In Section
Seekers of Perl Wisdom