in reply to Re: I don't get map. How would I use map here?
in thread I don't get map. How would I use map here?

Update: replaced superflous foreach after print

You could also remove the superfluous map :-)

print join ( "\t=>", reverse split ) . "\n", <DATA>;

Update: Sorry, ignore

Replies are listed 'Best First'.
Re^3: I don't get map. How would I use map here?
by Roy Johnson (Monsignor) on Jun 18, 2004 at 23:25 UTC
    Not without putting it in a different loop:
    print join("\t=>", reverse split), "\n" while <DATA>;

    We're not really tightening our belts, it just feels that way because we're getting fatter.