Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: dividing variables...

by HyperZonk (Friar)
on Jul 19, 2001 at 21:55 UTC ( [id://98170]=note: print w/replies, xml ) Need Help??


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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found