It becomes quite clear when you rewrite it as
sub foo { if ($_[0]) { return 'hello'; } # go off the end of sub without return so return the last expression }
In reply to Re: Value of a statement with modifier
by fergal
in thread Value of a statement with modifier
by Jenda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |