map in void context still rankles me for some reason (even though I understand that perl now has an optimization for it). So I'd write that as one of these:
orprint map { "$_\t=>$byFile{$_}\n" } keys %byFile;
print "$_\t=>$byFile{$_}\n" for keys %byFile; # look Ma! no map! :-)
In reply to Re^2: I don't get map. How would I use map here?
by duff
in thread I don't get map. How would I use map here?
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |