Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: foreach loop

by azatoth (Curate)
on May 02, 2001 at 19:37 UTC ( [id://77363]=note: print w/replies, xml ) Need Help??


in reply to foreach loop

Your while (<>) is causing an infinite loop. Get rid of it, and just use foreach, putting your print statement in there.

Update : Sherlock beat me to the punch. Use your ++'s on him instead.

Azatoth a.k.a Captain Whiplash

Make Your Die Messages Full of Wisdom!
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found