The stupid question is the question not asked | |
PerlMonks |
(ar0n) Re: Confused by a Conditionalby ar0n (Priest) |
on Jun 09, 2001 at 21:15 UTC ( [id://87202]=note: print w/replies, xml ) | Need Help?? |
Because strings are true. You're checking to see if $key is 'ID', or if 'TITLE' is true, or if 'GENE' is true, etc. string constants are always true. I think you're trying to see if $key is one of those strings. In that case, you could use: ... which will check to see if $key matches at least one of those. [ ar0n ]
In Section
Seekers of Perl Wisdom
|
|