http://www.perlmonks.org?node_id=1212694


in reply to Re: [OT]: This does not look like start end (grep vice for)
in thread This does not look like start end

My thought was that somewhere in the development line, the author had switched from grepping into a single array to push @a...; push @b...;. But I went back all the way to the v0.02 (the farthest that metacpan would take me in BackPAN), and it was still the grep { ... push ... }-in-void-context construct. So if it was the change to push that caused it, the change happened before it was tracked in CPAN.

Replies are listed 'Best First'.
Re^3: [OT]: This does not look like start end (grep vice for)
by AnomalousMonk (Archbishop) on Apr 11, 2018 at 16:07 UTC
    ... switched from grepping into a single array to push @a...; push @b...;.

    But there are many examples of statements like  grep { $_=0 } @acopy; Very strange.


    Give a man a fish:  <%-{-{-{-<