in reply to looking for a good idiom: return this if this is true
With return($level, $thingy) you get
sub return_if { if ($_[0]){ return(2, $_[0]); } } [download]