Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Printing an array using while loop

by Sidhekin (Priest)
on Oct 21, 2007 at 20:31 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-03-19 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found