Solution:
sub foo { ... return; }
Returns undef in scalar context.
Returns empty list in list context.