in reply to Re: Re: Re: Re: Re: Re: OR operator
in thread OR operator

I read $_ as "the thing" or "it". How do you read $_?

The original poster wanted this:

if ($color eq "blue || $color eq "red" || $color eq "green")
My second post essentially stated ...
if ($color eq $_)
... and dynamically replaced $_ with "blue", "red", or "green". Thus to me, $_ eq $color is like stating ...
if ("blue eq $color || "red" eq $color || "green" eq $color)
... which isn't intuitive.

-Matt