sub runtime_nullary { my $function = shift; return 0 if not defined( my $prototype = prototype $function ); return $prototype eq q{}; } ## end sub runtime_nullary print 'nullary dunno: '; say runtime_nullary('dunno') ? 'yes' : 'no'; print 'result is '; say dunno +4;