I've uploaded the three files I'm using to gist
Why there and not here?
But, this is your error:
open(IN, $oneper) or die "Can't open file $oneper for reading: $!\n";
open(INDEX, ">:raw","$file.idx") or die "Can't open $file.idx for read
+/write: $!\n";
syswrite INDEX, pack('N',0),4;
while (<IN>) {
syswrite INDEX, pack('N', tell INDEX), 4;
##.................................^^^^^
}
close INDEX;
You are indexing your index file instead of your datafile.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
|