Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Your sort call just reorders your list, it does nothing to "filter" the contents. You want to take the Also it doesn't make much sense to use s/// to modify the string to M-D-Y to then return a different string Y-M-D. Better would be to either use just a match m// and return the new string, or to actually switch things around with the s/// and return the modified string.
Edit: Misread the order of comparison being used in the parent sample code.
The cake is a lie. In reply to Re^3: Get most recent data based on a date from an array of hashes.
by Fletch
|
|