You can use:
I have grown to like -s due to its simplicity. BrowserUk introduced to me to it. Here is a short example:
#!/usr/bin/perl -sw use strict; our $FILE; our $CAT ||= 79; our $VERBOSE ||= 1; die "Usage: $0 -FILE=list [-CAT=$CAT] [-VERBOSE=$VERBOSE]\n" unless $FILE and -f $FILE;
cheers
tachyon
In reply to Re: A smart way to handle @ARGV
by tachyon
in thread A smart way to handle @ARGV
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |