in reply to A new perl {cough} feature?

did you really mean
grep { /Huh?/ } @matrix;
instead of
grep { /Huh?/ } @$_ for @matrix;
grep

-bn

Replies are listed 'Best First'.
Re: Re: A new perl {cough} feature?
by tachyon (Chancellor) on Feb 17, 2002 at 16:52 UTC
    @matrix = ( ["\n\nNo "], ["I ", "did "], ["not mean that, ", "get it n +ow?"] ); grep{print}@matrix; grep{print}@$_ for @matrix;

    perlman:perlref

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print