@ARGV works just fine in code from -e.
Update: D'oh, /me glossed completely over the -n part. The first shift in the BEGIN block's the way I'd do it. Must be Monday . . .
In reply to Re: perl command line arguments
by Fletch
in thread perl command line arguments
by jluther
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |