Help for this page

Select Code to Download


  1. or download this
        EXPR1 if $x;
        EXPR2 unless $x;
    
  2. or download this
       ((sub {EXPR1}, sub {EXPR2})[!!$x || 0])->();
    
  3. or download this
        foo($arg, @args) if $x;
        bar($arg, @args) unless $x;
    
  4. or download this
        ((\&foo, \&bar)[!!$x || 0])->($arg, @args)