Help for this page

Select Code to Download


  1. or download this
    my $fileno=fileno $fh;
    print defined $fileno ? $fileno : 'undef';
    
  2. or download this
    print $fileno // 'undef';
    
  3. or download this
    print fileno($fh) // 'undef';
    
  4. or download this
    print func($thing) ? $thing : 'undef';
    
  5. or download this
    say %foo<thing> ||| { /foo/ and .foo('bar') }, 'defoolt';