By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,098 Members | 2,007 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,098 IT Pros & Developers. It's quick & easy.

error "illegal division by zero" chunk 37.

P: 1
I have a perl script that throws an error "illegal division by zero" chunk 37.

FYI, this script was the one that worked fine two days back. There is no change
in the script.

Can anyone tell me, what could be the reason...and what is that chunk 37 telling about?
May 11 '07 #1
Share this Question
Share on Google+
2 Replies


miller
Expert 100+
P: 1,089
That is not enough information for us to be able to help you.

- Miller
May 11 '07 #2

miller
Expert 100+
P: 1,089
FYI, Whenever you have a divide by 0 error, simply go through your entire script looking for places that you "divide". Then add an if statement to verify that the denominator is actually a non-zero value.

This will help you at least determine where the error is occuring, and then you have a chance to determine what assumptiong concerning the data is incorrect and needs to be taken into account.

- Miller
May 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.