Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: undefined value as an ARRAY reference sometimes ok

by ikegami (Patriarch)
on Dec 14, 2011 at 06:47 UTC ( [id://943487]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    EXPR1->[ EXPR2 ]
    
  2. or download this
    ( EXPR1 //= [] )->[ EXPR2 ]
    
  3. or download this
    $list //= []
    
  4. or download this
    get_no_list() //= []
    
  5. or download this
    ( some_list() )[0]  # Returns the first element or an empty list.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found