in reply to Re^8: Sort big text file - byte offset - 50% there (Added code)
in thread Sort big text file - byte offset - 50% there
push @index, pack 'NN', $epoch, $offset;
Can someone confirm this and/or let me know if there is another way?
Thanks
<edit>
Ok, I just figured out that my guess was correct.
How else can I pack the data and maintain the fast sort? My system does not support 64-bit#!/usr/bin/perl -w use strict; my $num = 4757131264; print "NUM: ".$num."\n"; my $pnum = pack 'N', $num; print "NUM: ".unpack( 'N',$pnum)."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Sort big text file - byte offset
by BrowserUk (Patriarch) on Aug 31, 2006 at 22:46 UTC | |
|
Re^10: Sort big text file - byte offset
by BrowserUk (Patriarch) on Sep 02, 2006 at 15:45 UTC |