in reply to Surviving 'Illegal division by zero'
. I was wondering if there's some way I can alter this behaviour
You could wrap the expression in an eval
$growth = eval { ( $fig_2 / $fig_1 * 100 ) - 100 };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Surviving 'Illegal division by zero'
by ViceRaid (Chaplain) on Jun 23, 2004 at 11:52 UTC |