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

Re: Going to a specific line in a file.

by Asmo (Monk)
on Jun 14, 2007 at 20:56 UTC ( [id://621332]=note: print w/replies, xml ) Need Help??


in reply to Going to a specific line in a file.

Simplest method :
open (DATAFILE, $filename); @lines = <DATAFILE>; close(DATAFILE); print $lines[14];

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found