Update: made 0-safe
But still not undef-safe. ;-)
print shift @array while @array;
... which is about the silliest code I've ever written. Sheesh, what's with these arbitrary limitations? :)
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
In reply to Re^2: Printing an array using while loop
by Sidhekin
in thread Printing an array using while loop
by knapper19954
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |