Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Read Last Line of A File Only

by insensate (Hermit)
on Aug 23, 2004 at 18:10 UTC ( [id://385172]=note: print w/replies, xml ) Need Help??


in reply to Read Last Line of A File Only

perl -ne'print if eof' < my-reasonably-short-file
Has to read through the entire file... so I'm sure there are more efficient and practical solutions using modules etc...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found