in reply to More Date Conversion Happiness, Part 2
There's another way to define the hash using a slice. I'm not sure if it's asthetically more or less pleasing than your version, but it's a few less keystrokes.
my %months; @months{ '01'..'12', '1'..'12', qw/ jan feb mar apr may jun jul aug sep oct nov dec / } = ( qw/ January February March April May June July August September October November December /) x 3;
Cheers!
Dave
|
|---|