Re: Perl modulo

From: Scott Taylor
Date: Thu Dec 02 2004 - 17:41:08 EST



Scott Taylor said:
>
> Hello all,
>
> I know this isn't a Perl list, but I'm an admin too. :)
>
> I've come accross this before and cant find it again, does anyone know how
> to find the modulus of a divisor in Perl?
>
> most programmig languages just have something like $a = modulo(20/3) or
> simmilar. Anyone know the trick in Perl?

Never mind, I remember now, 20%3 returns the modulus.

Thanks.
--
Scott
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/