Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: text file reading

by pfaut (Priest)
on Dec 18, 2007 at 02:18 UTC ( #657588=note: print w/replies, xml ) Need Help??


in reply to text file reading

The getLine routine reads the file until it finds a non-blank line or end of file. You only called it once so you only read one line from the file. If you want to read them all, you need to loop on print $line->getLine(); until it returns undef.

90% of every Perl application is already written.
dragonchild

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://657588]
help
Chatterbox?
[Discipulus]: erix the right order of books is: The Three Musketeers, Twenty Years After, The Count of Moret; The Red Sphinx (not in the cycle but a must read!), The Vicomte de Bragelonne

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-05-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?