The command-line arguments are stored in the built-in @ARGV array. Therefore, if you say something like :
perl sample.pl argument1 argument2 argument3 then in your program you can access each of the command-line arguments as follows print $ARGV[0]; #prints argument1 print $ARGV[1]; #prints argument2 etc -- Rex > -----Original Message----- > From: Nicolae Popovici [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 20, 2001 6:13 AM > To: [EMAIL PROTECTED] > Subject: Command Line arguments. > > > Hi guys, > > Can anyone tell me how can I take the command line arguments > in a perl > script . I forgot how to do it . > Thanks for your support . > > Regards, > Nick > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]