Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Printing an array using while loopby Joost (Canon) |
on Oct 21, 2007 at 20:27 UTC ( [id://646304]=note: print w/replies, xml ) | Need Help?? |
I'm assuming that you mean
Also, I'm assuming that this is homework. Here's a hint: while(@array) tests the current length of the array. That means you will get an endless loop, but only if the array never changes. You may want to take a look at perlfunc's section "Functions for real @ARRAYS" updated: removed commas from qw() list. thanks liverpole.
In Section
Seekers of Perl Wisdom
|
|