Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: pure perl tail revisited

by grinder (Bishop)
on Sep 09, 2002 at 20:07 UTC ( #196417=note: print w/replies, xml ) Need Help??

in reply to pure perl tail revisited

I covered this issue exhaustively at Performing a tail(1) in Perl (reading the last N lines of a file). You might want to look there for OWTDI. I actually took about tail(1) for the PPT project (see KM's response) to rip the guts out into a module, but at the moment the parts are lying around on the floor.

The idea is that the stand-alone tail program just becomes a fairly simple object instantiation, but then you could also use the module in your own programs.

print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2020-10-26 04:07 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (250 votes). Check out past polls.