script.plthat defines package
Foo. now, for complex legacy reasons, your stuck with this and need to call
script.plboth from the command-line as well as
how do you create a chunk of code that only executes from the command-line and not when
script.pl is loaded or imported?
I might be missing something obvious, but the only thing I could come up with was requiring some random command-line argument and checking
@ARGV. apparently that's not an option.