in reply to Precedence of grep vs. ?:
Randal will disagree, I'm sure, but I always say "when in doubt, use parens".grep( /regex/, @array ? 1 : 2 );
xoxo,
Andy
--
<megaphone>
Throw down the gun and tiara and come out of the float!
</megaphone>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Precedence of grep vs. ?:
by merlyn (Sage) on Oct 04, 2001 at 21:33 UTC | |
by petdance (Parson) on Oct 04, 2001 at 22:37 UTC |