in reply to OR operator

Neither. It's
if ($color eq "red" or $color eq "blue" or $color eq "green") { ... }

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.