in reply to Re^4: List::Util::sum() and empty lists...
in thread List::Util::sum() and empty lists...
Well matematically 0 and undef do have the same value. There's just the fact that Perl-wise the second may sometimes generate a warning. I tend to turn this warning off anyway because IMHO it just gets in the way.
|
|---|