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:
My second post essentially stated ...if ($color eq "blue || $color eq "red" || $color eq "green")
... and dynamically replaced $_ with "blue", "red", or "green". Thus to me, $_ eq $color is like stating ...if ($color eq $_)
... which isn't intuitive.if ("blue eq $color || "red" eq $color || "green" eq $color)
-Matt
|
|---|