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

Re: (kudra) Re: Reading entire file.

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 09: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.