s "field vendno" where as before it was
"field" and @ARGV[3] was "vendno"
Make sense now?
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 1:04 PM
To: 'Michael Pastore'; '[EMAIL PROTECTED]
I don't see a problem with your first example:
$Line = "Hey there look it works";
if ($Line =~ /@ARGV[2]/i){
print "True\n";
}
if the script is called pl.pl then the following happens:
$ pl.pl arg0 arg1 THERE
True
$ pl.pl arg0 arg1 crap
but if @ARGV[2] is nothing (ie "") then /