in reply to Re^2: Date String Conversion?
in thread Date String Conversion?

By your "Save yourself" I was thinking you were going to build the month name-number hash more lazily...

my %months; @months{qw( jan feb mar apr may jun jul aug sep oct nov dec )} = ( 1 .. 12 );

Replies are listed 'Best First'.
Re^4: Date String Conversion?
by naikonta (Curate) on Jun 09, 2007 at 08:17 UTC
    Believe it or not, that was my initial draft in one-liner version. But I then decided to write it in a full script, and followed citromatik's style in hash building with a little modification. Don't get me wrong, I do like slices :-) OTOH, I intentionally focused on the input parsing and output printing parts, where citromatik's version seems to suffer from, in efforts and clarity.

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!