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.
In reply to Re^5: Passing Variables
by Marshall
in thread Passing Variables
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |