Good point.
-----Original Message-----
From: David Liouville [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 8:55 AM
To: Rob Dowell; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: command line arg

maby we have only part of informations and $ARGV[0] is use for anything else ... but if there is only one argument, it's $ARGV[0] of course.
----- Original Message -----
From: Rob Dowell
Sent: Wednesday, November 19, 2003 3:14 PM
Subject: RE: command line arg

It should be :
 
$exy=$ARGV[0];
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Tfbsr Bertrand
Sent: Wednesday, November 19, 2003 7: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


 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/2003

Reply via email to