Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Printing an array using while loop

by downer (Monk)
on Oct 21, 2007 at 20:52 UTC ( #646311=note: print w/replies, xml ) Need Help??


in reply to Re: Printing an array using while loop
in thread Printing an array using while loop

shouldnt this be really easy?
my $counter = 0; while($counter <= $#array) { #do your thing $counter++; }

Replies are listed 'Best First'.
Re^3: Printing an array using while loop
by chromatic (Archbishop) on Oct 21, 2007 at 21:10 UTC
    shouldnt this be really easy?

    Uncountable numbers of fencepost errors in C programs argue otherwise.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2020-08-15 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (78 votes). Check out past polls.

    Notices?