http://qs321.pair.com?node_id=621394


in reply to Re: Modules as executable scripts?
in thread Modules as executable scripts?

For PAR compatibility I use:
__PACKAGE__->do_something(@ARGV) if !caller() || caller() eq 'PAR';