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>";