my $fileno=fileno $fh; print defined $fileno ? $fileno : 'undef'; #### print $fileno // 'undef'; #### print fileno($fh) // 'undef'; #### print func($thing) ? $thing : 'undef'; #### say %foo ||| { /foo/ and .foo('bar') }, 'defoolt';
## print $fileno // 'undef'; ##
## print fileno($fh) // 'undef'; ##
## print func($thing) ? $thing : 'undef'; ##
## say %foo ||| { /foo/ and .foo('bar') }, 'defoolt';