Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: RFC: "assignary" operator ?= :

by tobyink (Canon)
on Dec 08, 2019 at 21:47 UTC ( [id://11109858]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $var ?= JSON::PP::true : JSON::PP::false;
    
  2. or download this
    my $is_ready = 1;
    $is_ready = 0 if $service->not_configured();
    ...
    $is_ready ?= '<span class="green">yes</span>' : '<span class="red">no<
    +/span>';
    
    print "<p>Service ready? $is_ready</p>";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-18 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found