Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Modulus zero error

by jalewis2 (Monk)
on Dec 25, 2004 at 02:45 UTC ( [id://417378]=note: print w/replies, xml ) Need Help??


in reply to Modulus zero error

I was just getting this error yesterday and it was making me crazy. I was doing this at the start of my script.

my $x = undef;

Not realizing that the error was telling me $x needs to be something. I changed it from undef to 0 and that fixed it. Thinking back, trying to do the operation on an undefined variable was dumb, but I didn't "see" it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found