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';