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."
($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."
In Section
Meditations