Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: shift in list context buggy? (best answer so far!)

by LanX (Chancellor)
on Nov 09, 2013 at 14:39 UTC ( #1061829=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<187> @a=(1,undef,2,3,0,4,5)
    
    ...
    45
      DB<191> print $x while $x =shift @a
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061829]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-02-24 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (351 votes). Check out past polls.