in reply to
dividing variables...
The only reason that
$X{abc}/20
would evaluate to zero is if the numeric value of $X{abc} is zero. Three possible reasons:
$X{abc} contains a string, that isn't a number ('ab12c' instead of '12').
$X{abc} is undef ... that is, it hasn't been defined.
$X{abc} == 0
Check your code for one of these.
Comment on
Re: dividing variables...
Download
Code
Replies are listed 'Best First'.
Re: Re: dividing variables...
by
reggie
(Initiate)
on Jul 19, 2001 at 22:14 UTC
Bingo! Thanks for the fast reply -reg
[reply]
In Section
Seekers of Perl Wisdom