Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: manipulating array (TMTOWTDI!)by Codon (Friar) |
on Aug 23, 2007 at 19:59 UTC ( [id://634720]=note: print w/replies, xml ) | Need Help?? |
If you know that every element begins with the A19\d+ (or you only care about these lines) you can filter / clean the records with a grep. You can then pipe those (matched/cleaned) items to sort (via a Schwartzian Transform) using a quick (simple) by_date subroutine.
I know I could have saved some characters on the sort line, but this was more aesthetically pleasing to me.
Ivan Heffner Sr. Software Engineer WhitePages.com, Inc.
In Section
Seekers of Perl Wisdom
|
|