Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: On-the-fly hashref

by eric256 (Parson)
on Sep 28, 2010 at 20:42 UTC ( [id://862499] : note . print w/replies, xml ) Need Help??


in reply to On-the-fly hashref

Heres how i would have done it...

my $m = 1; my $hash = { map { $m++ => $_ } qw/Jan Feb Mar Apr May Jun Jul Aug Sep + Oct Nov Dec/ };

___________
Eric Hodges