in reply to Re: Confused by a Conditional
in thread Confused by a Conditional

You are very, very wrong.
'ID' or 'TITLE' or 'GENE' or 'CYTOBAND' or 'LOCUSLINK' or 'CHROMOSOME' or 'SCOUNT'
evaluates to 'ID'.
use strict; my $key = 'TITLE'; unless (($key) eq ('ID' or 'TITLE' or 'GENE' or 'CYTOBAND' or 'LOCUSLINK' or 'CHROMOSOME' or 'SCOUNT')) { print "Damian is wrong\n"; }
This prints "Damian is wrong".

-- Abigail

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.