Is there more that you are trying to accomplish than that?if (defined caller) { print "used as a module"; } else { print "used as a script: @ARGV"; main() }
In reply to Re: Module/script all in one
by ysth
in thread Module/script all in one
by bschmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |