eval BLOCK would be your friend here:
$growth will be undef if the expression dies.eval { $growth = ( $fig_2 / $fig_1 * 100 ) - 100; };
/J\
In reply to Re: Surviving 'Illegal division by zero'
by gellyfish
in thread Surviving 'Illegal division by zero'
by ViceRaid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |