Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: File Handles Chapter(not homework)

by choroba (Bishop)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984970]
help
Chatterbox?
[choroba]: The older one will even perform twice, once at a retirement home, and then at the music school. It's a day off, but will be pretty busy...
[Eily]: hello perlmonks :)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-12-12 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (327 votes). Check out past polls.

    Notices?