Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: RFC: "assignary" operator ?= :

by choroba (Cardinal)
on Dec 08, 2019 at 20:49 UTC ( [id://11109854]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $t;
    sub tuple { $t++ => 12 }
    my $bool = 0;
    my %h = (tuple()) x !! $bool;
    
  2. or download this
    ...
    my %h = $bool ? (tuple()) : ();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109854]
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: (6)
As of 2024-04-16 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found