in reply to Precedence of grep vs. ?:

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)));

Replies are listed 'Best First'.
Re: Re: Precedence of grep vs. ?:
by blackjudas (Pilgrim) on Oct 05, 2001 at 09:59 UTC
    Is that part of the distro? I'll go look, but got it from CPAN just in case.

    BlackJudas