in reply to How can I sort this array?
where %month is a hash that maps the 3 character month abbreviation to a to character numeric string (e.g., 'Jan' => '01', ... 'Dec' => '12').$name =~ s/_(\d\d)(...)(\d\d:\d\d)/; $key = $month{$2} . $1 . $3;
You can use this within a Schwartzian transform (many examples of which can be found by doing a Super Search on "Schwartzian").
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I sort this array?
by particle (Vicar) on Jun 17, 2002 at 19:12 UTC |