in reply to Re^3: Structure number
in thread Structure number
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' )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Structure number
by AG87 (Acolyte) on Dec 02, 2010 at 09:02 UTC | |
by AG87 (Acolyte) on Dec 02, 2010 at 09:25 UTC | |
by AG87 (Acolyte) on Dec 02, 2010 at 17:48 UTC |