Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: (kudra) Re: Reading entire file.

by stuffy (Monk)
on May 04, 2001 at 10:16 UTC ( #77883=note: print w/replies, xml ) Need Help??


in reply to (kudra) Re: Reading entire file.
in thread Reading entire file.

The lines will not contain both $foo and $bar at the same time. As a very newbie I do not understand exactly what your code is saying. (my programming experiance comes from pascal programming in high school 6 years ago.) Also, how does Perl know that it is at the end of a file?

Stuffy

Replies are listed 'Best First'.
(ar0n: eof) Re (2): (kudra) Re: Reading entire file.
by ar0n (Priest) on May 04, 2001 at 13:20 UTC
    See eof:
    if ( eof FILEHANDLE ) { print "Reached end of file.\n"; }


    ar0n ]

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2021-10-27 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (94 votes). Check out past polls.

    Notices?