On Thu, Aug 02, 2001 at 08:28:32PM -0400, Ken Januski wrote:
> I've been reading the most recent Randall Schwartz column in SysAdmin
> magazine and his code has this line:
> ($start +=1) %=7;
> If $start = 1 then I think that this line means 2%7. I believe that the
> intended result is 2 but I'm ju
On Thursday, August 02, 2001 5:28 PM, [EMAIL PROTECTED] pondered:
> [...] I'm just not sure what 2 % 7 equals.
for m,n integers with m>=0, n > 0 , m < n:
( m modulo n ) = m
so, yes, 2 % 7 is 2 .
Best,
-=greg
At 996802112s since epoch (08/02/01 20:28:32 -0400 UTC), Ken Januski wrote:
> ($start +=1) %=7;
> If $start = 1 then I think that this line means 2%7. I believe that the
> intended result is 2 but I'm just not sure what 2 % 7 equals.
You're right; the answer is 2.
'mod' means the remainder of the
Hi,
I hope I'm not abusing list by asking this question here. It's the only
list I use regularly so I'd prefer to ask it here than go to a Perl
list. But if this is quesionable behavior please let me know.
I've been reading the most recent Randall Schwartz column in SysAdmin
magazine and his code
4 matches
Mail list logo