in reply to New to Perl - Question about using &&

Both conditions need to be in one set of parentheses e.g
if($condition ne 'SN' && $condition ne 'SU') { ... } # of if you like your regexes if($condition !~ /^S[UN]$/) { ... }
For more info on perl's syntax check out the perlsyn manpage.
HTH

_________
broquaint