in reply to OR operator

So many responses... But you are all WRONG!

my %primary; BEGIN { @primary{qw( red blue green )}= (1)x3; } ... if( $primary{$color} ) { ....
;)

                - tye

Replies are listed 'Best First'.
Re^2: OR operator (hash)
by Aristotle (Chancellor) on Apr 13, 2003 at 16:02 UTC
    BEGIN { @primary{qw( red blue green )} = (); } if(exists $primary{$color})
    :P

    Makeshifts last the longest.