Not sure if you're looking to replace both loops entirely or whether you need %byFile for other purposes ...
print map {join("\t=>", reverse split) . "\n"} <DATA>;
Update: replaced superflous foreach after print
In reply to Re: I don't get map. How would I use map here?
by ryantate
in thread I don't get map. How would I use map here?
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |