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


in reply to Sorting The Date format Values without using any perl modules.

What did you try so far? Have you looked at Perls sort function? The documentation is available via perldoc -f sort, or perldoc sort. Did you try simply using sort? Please don't ask us to do your homework!

The sort documentation mentions the following example:

@articles = sort {$a cmp $b} @files;

Maybe you can adapt it to your needs.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.