- or download this
% ./myprog foo bar blat
- or download this
#!/usr/bin/perl -s
print "value of -x: $x\n";
print "value of -name: $name\n";
- or download this
% ./myprog -x -name=Jeff
value of -x: 1
value of -name: Jeff
- or download this
while (<>) {
# $ARGV is the filename
...
# or
# close ARGV if eof;
}