if (@fields[2] ne G || A || C || G)
The syntax and logic are wrong there. The letter would be in $fields[0] and that has to be explicitly compared for each letter and you want to use && instead of || for a negative comparison. For example:
if ( $fields[0] ne 'G' && $fields[0] ne 'A' && $fields[0] ne 'C' & +& $fields[0] ne 'G' )
In reply to Re^4: Structure number
by jwkrahn
in thread Structure number
by AG87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |