O'Reilly logo

Perl 6 Essentials by Leopold Tötsch, Dan Sugalski, Allison Randal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

mod

Synopsis

mod DEST, VAL
mod DEST, VAL1, VAL2
               

Divide VAL1 by VAL2 and return the remainder. If VAL2 is left off, divide DEST by VAL. The operation is defined as:

x mod y = x - y * floor(x / y)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required