Tech Recorder
2006/08/17
@ARGV
@ARGV is
predefined
variable to hold the command line arguments.
$#ARGV is the totoal number of arguments minus 1.
$ARGV[0] is the first argument.
For example:
perl test.pl one two three
@ARGV --> ("one", "two", "three")
$#ARGV --> 2
$ARGV[0] --> one
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment