in reply to How to compare time in perl
When run this prints:#!/usr/bin/perl @data = <DATA>; chomp @data; foreach (sort { $a cmp $b } @data) { print "$_\n"; } __END__ 2003/02/05 17:32:06.179 2003/02/05 17:32:06.159 2003/01/05 17:32:06.179 1999/01/05 17:32:06.179
1999/01/05 17:32:06.179 2003/01/05 17:32:06.179 2003/02/05 17:32:06.159 2003/02/05 17:32:06.179
Matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to compare time in perl
by tachyon (Chancellor) on Feb 08, 2003 at 19:50 UTC | |
by demerphq (Chancellor) on Feb 08, 2003 at 23:19 UTC |