Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Array/List Strangeness (why)

by LanX (Saint)
on Aug 05, 2009 at 17:46 UTC ( [id://786183]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<71> x [qw/a b c/]->[2]                # works like expected
    0  'c'
    ...
    0  'a'
      DB<73> x [qw/a b c/]->[0,1]
    0  'b'
    
  2. or download this
      DB<83> x @{[ qw// ]}[0,1]
    0  undef
    ...
      DB<84> x @{[ qw/a b c/ ]}[0,1]
    0  'a'
    1  'b'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found