http://www.perlmonks.org?node_id=318197


in reply to sorting entires by date

If, as your sample data indicates, your lines are of a consistant fixed format, then a simpler sort using substr would suffice.

my @sorted = sort{ substr( $a, 19 ) cmp substr( $b, 19 ) } <FILE>;

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!