> Even at the risk of Destroying the Entire Universe???
> 
> What do others think?

I dunno, seems awfully extreme. Returning undef and testing with "||
die" seems sufficient to me...

   $sum = reduce {$_[0]+$_[1]} 0, @numbers || die "Chaos!!";

Note with the || that way, it'll die immediately if @numbers is empty,
even before destroying the universe.

If a person isn't checking values, they deserve what they get, IMO...

-Nate

Reply via email to