linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Perl modulo
@ 2004-12-02 22:07 Scott Taylor
  2004-12-02 22:40 ` Scott Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Taylor @ 2004-12-02 22:07 UTC (permalink / raw)
  To: linux-kernel


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?

Cheers.

--
Scott

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Perl modulo
  2004-12-02 22:07 Perl modulo Scott Taylor
@ 2004-12-02 22:40 ` Scott Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Taylor @ 2004-12-02 22:40 UTC (permalink / raw)
  To: linux-kernel


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-02 22:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-02 22:07 Perl modulo Scott Taylor
2004-12-02 22:40 ` Scott Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).