in reply to Re: Surviving 'Illegal division by zero'
in thread Surviving 'Illegal division by zero'
++ Thanks, that's a really interesting answer, though I think a simple function (see above) might be easier for whoever maintains my library to understand at first glance ;). It's also a shame that it isn't possible to directly re-open the method definitions of '/' and '+' for numeric scalars in Perl.
As an aside, does this solution using numeric classes make anyone else pine for them in Perl (Float, Integer, Complex ...)?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Surviving 'Illegal division by zero'
by dragonchild (Archbishop) on Jun 23, 2004 at 14:36 UTC | |
by ViceRaid (Chaplain) on Jun 23, 2004 at 22:17 UTC | |
by melora (Scribe) on Jun 24, 2004 at 02:34 UTC |
In Section
Seekers of Perl Wisdom