B::Deparse is your friend in questions of precedence.
$ perl -MO=Deparse,-p -e '$f = grep /f/, @array ? 1 : 2;' ($f = grep(/f/, (@array ? 1 : 2)));
In reply to Re: Precedence of grep vs. ?:
by Fletch
in thread Precedence of grep vs. ?:
by blackjudas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |