Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: Printing an array using while loop

by Sidhekin (Priest)
on Oct 21, 2007 at 20:31 UTC ( #646308=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

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!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2016-10-22 08:13 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (293 votes). Check out past polls.