Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: File Handles Chapter(not homework)

by choroba (Canon)
on Aug 02, 2012 at 07:58 UTC ( #984970=note: print w/ replies, xml ) Need Help??

in reply to File Handles Chapter(not homework)

To read a file line by line, you typically use

while (my $line = <>) { # do something with the line }
If this construct is missing in your textbook, somebody probably tore some pages from the book.

If you meant "preceded" by "proceded", you might use $ARGV: look it up in perlvar.

Comment on Re: File Handles Chapter(not homework)
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2015-11-27 13:19 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (729 votes), past polls