Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: 0 illegal modulus?

by Vynce (Friar)
on Jun 11, 2001 at 07:11 UTC ( #87398=note: print w/replies, xml ) Need Help??


in reply to 0 illegal modulus?

well, you could override the modulus operator if you prefer, and use an idiom like

$ans = ($y*1) ? $x % $y : 0;
see overload for details.

.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://87398]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-09-21 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (252 votes). Check out past polls.

    Notices?