Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Preventing unintended list expansion inside hash literals.

by vr (Curate)
on Jan 05, 2017 at 09:47 UTC ( [id://1179003]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub some_key { keys %{$_[0]} ? scalar each %{$_[0]} : undef }
    
  2. or download this
    sub some_key { keys %{$_[0]}; scalar each %{$_[0]} }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found