in reply to How to sort the data in Array which has format MMYY

You could turn the format from MMMYY into YYMM and then sort numerically. The following sub also takes care or the capitalization issue and fits into your original post:

sub by_month { ($a=~/(...)(..)/,sprintf('%02d%02d',$2,$mon->{ucfirst lc $1})) <=> ($b=~/(...)(..)/,sprintf('%02d%02d',$2,$mon->{ucfirst lc $1})); }

Replies are listed 'Best First'.
Re^2: How to sort the data in Array which has format MMYY
by kum@12 (Initiate) on Jul 02, 2013 at 14:38 UTC
    Hi Masters,

    Thanks for the help, please suggest me as i am new to perl programming, where can i learn the perl from basics, any links or online books