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 reply to Re^2: Modules as executable scripts?
by friedo
in thread Modules as executable scripts?
by graff
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |