Pull out only the date lines using grep.
@events = sort sortByDate grep { /date:/ } @events;
In reply to Re: sorting a file by a date:"YYYY-MM-DD" field with cmp
by GotToBTru
in thread sorting a file by a date:"YYYY-MM-DD" field with cmp
by jason.printer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |