
yellowman
Novice
Apr 3, 2007, 7:43 AM
Post #1 of 4
(1121 views)
|
I am trying to learn how to use command line arguments using @ARGV I am just trying to put together something simple to see how everything works. For instance I want to type something like test.pl 1, test.pl 2, test.pl 3 etc. and have something different print out depending on which command line argument is used. I know I would put the 3 arguments in the @ARGV array, but then how would I write the if statements to print something different out for each option?
|