Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 contemplating the Monastery: (5)
As of 2019-08-24 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?