use Contextual::Return; use Carp qw(croak); ... sub foo { ... return LIST { some listy expression here } SCALAR { croak "please invoke me in a list context" } ; }
In reply to Re^3: Returning undef: The point I would like Damian to reconsider
by merlyn
in thread Returning undef: The point I would like Damian to reconsider
by martin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |