Perl: the Markov chain saw | |
PerlMonks |
Re: Confused by a Conditionalby KM (Priest) |
on Jun 09, 2001 at 21:15 UTC ( [id://87203]=note: print w/replies, xml ) | Need Help?? |
Because the following are considered true:
You will want to repeat the $key eq 'something' bit, or have possible matches in a pattern match a la /(TITLE|GENE|CYTOBAND|etc..)/, or have the possible matches in an array and grep through it (perldoc -f grep), or in a hash and do one if exists $hash{$key}....
Cheers,
In Section
Seekers of Perl Wisdom
|
|