On Mar 21, 2005, at 1:47 PM, Bryan Baldus wrote:
See perldoc perlop for Equality Operators. I believe:
if ($field_100 && (($fic == '1') and ($juvie == 'j'))) {
should be
if ($field_100 && (($fic eq '1') and ($juvie eq 'j'))) {
Also, the parens aren't necessary:
if ($field_100 and $fix eq '1' and $juvie eq 'j')
Or equivalently:
if ($field_100 && $fix eq '1' && $juvie eq 'j')
Or equivalently (not that I would recommend this syntax):
if ($field_100 && $fix eq '1' and $juvie eq 'j')
This is because 'a eq b' expressions are evaluated before 'c && d' expressions, which are evaluated before 'e and f' expressions.
Paul.
-- Paul Hoffman :: [EMAIL PROTECTED] :: http://www.nkuitse.com/