Anthony Saffer wrote:
>
> Good Morning Everyone,
Hello,
> Got another question: I wrote my first Perl script last night and
> it seemed to be error free on Windows. But when I uploaded it to
> Linux (RH 7.3) it threw an error that I don't understand. From a
> Google search it seems there could
27;Anthony Saffer'" <[EMAIL PROTECTED]>; "Perl Beginners List"
<[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 8:04 AM
Subject: RE: Question about Error
> Are you sure you know what this 'if' statement is doing?
> It always evaluates
Are you sure you know what this 'if' statement is doing?
It always evaluates true. and the m/$litem/$matchitem/i shouldn't be in
quotes.
if($litem, "/$matchitem/"){ ## always true
$PNdString =~ "m/$litem/$matchitem/i"; ## not a pattern match if it's
in quotes
print (OUTFILE "$PNdS