Can someone help me and tell me mabout the @ARGV variable in PERL?
thanks.
Can someone help me and tell me mabout the @ARGV variable in PERL?
thanks.
lets say you have a script called 'jerk.pl' and then when you run the script you type this at the command line:
jerk.pl loser hoser
$ARGV[0] would be loser
$ARGV[1] would be hoser
basically it is an array that stores the arguments you pass to the script...that is the short version
If you want multiple words on one element of the array, then you need to put them in quotes:
jerk.pl "loser loser" "hoser"
$ARGV[0] would be "loser loser"
$ARGV[1] would be "hoser"