in reply to Using in multiple passes

Or, more succintly:
@everything = <> map { pass2 } map { pass 1 } @everything;

note well the order of pass calls.

Replies are listed 'Best First'.
RE: RE: Using in multiple passes
by merlyn (Sage) on Oct 25, 2000 at 18:30 UTC
    But as I told you in the chatterbox, that's less efficient, and not even particularly elegant. And it seemed that the original poster wanted the same data to both passes, so you'd have to be very careful to pass $_ through each of your passes correctly.

    Oh well.

    -- Randal L. Schwartz, Perl hacker