. 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 };
In reply to Re: Surviving 'Illegal division by zero'
by adrianh
in thread Surviving 'Illegal division by zero'
by ViceRaid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |