The real lesson here is: if the sub is documented to return a scalar and it uses a return code to signal failure, it should return a scalar. It shouldn't randomly introduce context sensitivity in case of failure.
/J
In reply to Re^4: getting 2 things done at once with Class::Base (return undef)
by jplindstrom
in thread getting 2 things done at once with Class::Base
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |