if($foo) { print "1\nError was $foo\n"; return; } #would become preturn "1\nError was $foo\n" if $foo;