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?

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:

print map { "$_\t=>$byFile{$_}\n" } keys %byFile;
or
print "$_\t=>$byFile{$_}\n" for keys %byFile; # look Ma! no map! :-)