Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Preventing unintended list expansion inside hash literals.

by kcott (Archbishop)
on Jan 05, 2017 at 10:38 UTC ( [id://1179007]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...
    %$hash_ref or return; # just return
    ...
    $key;                 # or last line in sub returns a scalar
    
  2. or download this
    ( key1 => ($val1), key2 => ($val2) )
    ( key1 => (),      key2 => ()      )
    ( key1 => ($val1), key2 => ()      )
    ( key1 => (),      key2 => ($val2) )
    
  3. or download this
    ( 'key1', $val1, 'key2', $val2 )
    ( 'key1', 'key2'               )
    ( 'key1', $val1, 'key2'        )
    ( 'key1', 'key2', $val2        )
    

Log In?
Username:
Password:

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

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

    No recent polls found