in reply to Confused by a Conditional
Here's another way of doing it in addition to the ones already mentioned:
if (' ID TITLE GENE CYTOBAND LOCUSLINK CHROMOSOME SCOUNT ' =~ m/ $key +/) { print "stuff.\n"; }
NOTE: The spaces in this solution are key in making sure the right word is being matched.
Zenon Zabinski | zdog | zdog7@hotmail.com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (zdog) Re: Confused by a Conditional
by ZZamboni (Curate) on Jun 09, 2001 at 22:06 UTC |
In Section
Seekers of Perl Wisdom