in reply to Re^4: Passing Variables
in thread Passing Variables
I am actually fine with that error code!
I have written Perl code that intercepts various warnings in situations where I can actually fix the problem. I remember one sort routine where a numeric comparison didn't work and the code defaulted back to an alpha comparison. There is no "fix" for a "divide by zero".
I added comments about this in further code. Grandfather is right about that. Document limitations.
In the code, allowing Perl to throw a "divide by zero" exception is fine.
The code is short. Detecting and printing an error that "will happen" is unnecessary,
because there is no "fix" for that error.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Passing Variables
by GrandFather (Saint) on Mar 14, 2021 at 20:04 UTC |