try
&bad_files($entry,$size) if($entry =~ /$ext$/);
and look at Getopt::Long for command line options ... more fun
:o)
----- Original Message -----
Sent: Wednesday, November 19, 2003 2:02
PM
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
|