View Single Post
Old 2013-11-09, 02:48 PM   #6
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
I've been working on the trade script for http://www.women-in-bondage.info/ and you guys just helped me out without having to do a thing. I was trying to divide two variables, and the script kept crashing. I went on Google and looked at several Perl tutorials, who all said I was doing it right, but it kept crashing. In the end I came here, was starting a "help please" thread and typed "the only way I can see it failing is if the second variable is zero", and thought "Hang on, in extreme cases it might be zero!" So I went back and added a condition:
unless ($counttsent{$mixswap[$temp]} == 0)
and it worked.

So, thanks for being a sounding board guys, I didn't even need to post the question to get it answered!
ecchi is offline   Reply With Quote