in reply to Missing the if statement and going directly to else
The case might be that $PartNumber contains, for example, brackets.if ($main::fields[0] =~ /\Q$PartNumber\E/) { # ... }
continue();Perl 4 required ampersands, so they're left in there for compatibility reasons, mostly, but are otherwise deprecated.
if ($main::fields[0] eq $PartNumber) { # ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Missing the if statement and going directly to else
by Bismark (Scribe) on Jan 16, 2003 at 23:36 UTC | |
by tadman (Prior) on Jan 16, 2003 at 23:47 UTC |