in reply to Log parsing by timestamp dilema
I'm sure there's a straightforward way to implement the getFilename operation, if only by tinkering with the File::MergeSort code.
# Mostly extracted from the documentation. I have not tried it. use File::MergeSort; my $sort = new File::MergeSort( \@file_list, \&index_extract_function ); my $line; while (defined($line = $sort->next_line)) { my $fname = getFilename(); print "$line/$fname\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Log parsing by timestamp dilema
by Limbic~Region (Chancellor) on Feb 01, 2003 at 20:58 UTC | |
by tall_man (Parson) on Feb 01, 2003 at 22:52 UTC |