There's more than one way to do things | |
PerlMonks |
Re: Surviving 'Illegal division by zero'by ambrus (Abbot) |
on Jun 23, 2004 at 12:09 UTC ( [id://369014]=note: print w/replies, xml ) | Need Help?? |
As others have said, eval is your friend. I have used eval once to catch division by zero, see Re: Stereotypes about perl. Here's the relevant snippet from it:
In Section
Seekers of Perl Wisdom
|
|