Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: (kudra) Re: Reading entire file.

by stuffy (Monk)
on May 04, 2001 at 10:16 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2024-03-28 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found