Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^11: trying to implement file tail with regular expression

by poj (Abbot)
on Feb 17, 2016 at 08:33 UTC ( [id://1155441]=note: print w/replies, xml ) Need Help??


in reply to Re^10: trying to implement file tail with regular expression
in thread trying to implement file tail with regular expression

See the tail option

When first started, read and return n lines from the file. 
If n is zero, start at the end of file. If n is negative, 
return the whole file. Default is 0.
my $fh = File::Tail->new( name => $Config->{'_'}{'DIAGFILE'}, interval => 1, # wait at start maxinterval => 10, # change to suit adjustafter => 10, # change to suit tail => -1, # all lines read at start up );
poj

Replies are listed 'Best First'.
Re^12: trying to implement file tail with regular expression
by mkhayat (Initiate) on Feb 17, 2016 at 08:43 UTC

    Its working finally. Thank you very much for your support I really appreciated :) :) :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found