sub foo { if ($_[0]) { return 'hello'; } # go off the end of sub without return so return the last expression }