in reply to Re: style for returning errors from subroutines
in thread style for returning errors from subroutines
Of course, what you pointed out is a common gotcha for newbies, and one that I've fallen for a couple of times. Not this time though :)@foo = (); $bar = \@foo; ($baz = $bar) or warn("assigning a (reference to an empty list) to another scalar is + false");
As I said in reply to bluto's suggestion, I do like the "Exceptional Philosophy", but so far the neatest implementation seems to be signal handling (IMHO).
- Boldra
|
|---|