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.