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