Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Welcome to the Monastery
 
PerlMonks  

RE: My favorite looping mechanism in Perl is:

by Simplicus (Monk)
on May 09, 2000 at 18:55 UTC ( [id://10792]=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 My favorite looping mechanism in Perl is:

foreach is cool, but without while you couldn't say while(<FILE>), which is cool, too...
Simplicus
  • Comment on RE: My favorite looping mechanism in Perl is:

Replies are listed 'Best First'.
RE: RE: My favorite looping mechanism in Perl is:
by BBQ (Curate) on May 10, 2000 at 16:14 UTC
    AHA! But you CAN! One of my 1st posts (back in December) was exactly on this topic. The only reason why its not good to do a
    foreach (<FILE>) { }
    is because the whole FH gets thrown into memory before the iterations (or so I've been told). But, yeah, practically it wouldn't be that good...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://10792]
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.