RE: Question Regarding Pattern Matching and ARGV

2002-02-20 Thread Nikola Janceski
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]&#x

RE: Question Regarding Pattern Matching and ARGV

2002-02-20 Thread Nikola Janceski
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 /