Re: Reading the file using tell and seek method

2007-11-12 Thread Tom Phoenix
On 11/11/07, sivasakthi <[EMAIL PROTECTED]> wrote: > Can't use string ("1193892901.686") as a SCALAR ref while "strict refs" in > use at telseek.pl_ line The line number that you omitted points to a place in your source code where you dereference a reference to a scalar, but the reference in que

Re: Reading the file using tell and seek method

2007-11-11 Thread sivasakthi
> > It sounds as if you really want to know whether the log file has been > updated between one invocation of your program and the next. Is that > it? (It's helpful to tell us what you want to accomplish, not just how > you hope to accomplish it. Storing a byte position into a temporary > file i

Re: Reading the file using tell and seek method

2007-11-07 Thread Tom Phoenix
On 11/6/07, sivasakthi <[EMAIL PROTECTED]> wrote: > I have one requirement, the file content is following, it is a dynamic > file, > > 1194240905.451105 127.0.4.56 TCP_MISS/200 2853 GET > cache_object://localhost/info - NONE/- text/plain > 1194240905.452 0 127.0.0.1 TCP_MISS/200 2853 GET

Re: Reading the file using tell and seek method

2007-11-06 Thread sivasakthi
Sorry..the actual tried coding is following, #!/usr/bin/perl use strict; use warnings; use Tie::File; my ($Ltimestamp,$Lelapsed,$Lhost,$Ltype,$Lsize,$Lmethod,$Lurl,$Luser, $Lhierarchy,$Lconttype); my($name,$pos,$name1,$no,$tmp,$Ltimestamp1); our $tmpp; my $file="/file/path"; open(FH,"tmp.txt") ||