The command line arguments start at zero.
 
$ARGV[0] will be the first argument.
 
 
 
Best regards,
PCH
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Tfbsr Bertrand
Sent: Wednesday, November 19, 2003 8:03 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: command line arg

I am trying to pass a file extension as a command line argument, then to search all directories for that partcular extension, but have problem getting it to work.  Could you please advise.
 
$ext = $ARGV[1];
...
...
...
&bad_files($entry,$size) if($entry =~ /\$ext$/);
 
 
Thanks
Terry


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Reply via email to