> 
> 
> > suppose the temporary is present then need to seek the already stored
> > file position from "abc" file , if the that position is not catched
> > in "abc" file then will continue the seeking process from "abc.0", if
> > also not catched then seeking from "abc.1" .... this is up to
> > "abc.10"
> 
> What do you mean by "catched" (cached perhaps?)  How do you determine 
> if the position is "catched" in a particular file?
> 

I forgot to mention one information, the temporary file have the
position of the line and that full line, 

eg : 345 1193892603.468    249 127.0.0.1 TCP_MISS/200 2852 GET
cache_object://localhost/info - NONE/- text/plain

#$pos have the position of the line (from tmp.txt)
open (FF,"abc") || die "can't open the file $!\n";
seek(FF,$pos,0);
while(<FF>)
{
#Get the first column of (1193892603.468) stored line from tmp.txt)
#Get the first column of the current file handle line($_)
#Check if both are equal or not , if it is true then continue the
remaining process , otherwise go to seeking and check the first column
of the line from the file abc.0, abc.1 and so on..
#do calculation
}


Thanks,



Reply via email to