Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: A better mod (%) operator?

by shotgunefx (Parson)
on Jul 09, 2002 at 10:37 UTC ( #180442=note: print w/replies, xml ) Need Help??


in reply to A better mod (%) operator?

You could look at Filter::Simple as well. Then you could swap
($m,$s) = $i /% 60 with ($m,$s) = div_mod($i,60).

Though trying to parse the left hand side of /% for anything that would constitute a valid expression would be a real pain.

-Lee

"To be civilized is to deny one's nature."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-05-14 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (146 votes). Check out past polls.

    Notices?