map returns a list. The []'s return a reference to an anonymous array created from that list.print Dumper [map {$_ => get_day_name($_)} <DATA>];
Update I should have read the question more closely. He does want a hash back. See clintp's response.
In reply to Re: Printing a reference to the output of map
by mikeB
in thread Printing a reference to the output of map
by sierrathedog04
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |