develooper Front page | perl.perl5.porters | Postings from February 2008

Re: [perl #50364] [PATCH] perlop.pod - misnomer in % operator documentation

Thread Previous
From:
Rafael Garcia-Suarez
Date:
February 8, 2008 07:31
Subject:
Re: [perl #50364] [PATCH] perlop.pod - misnomer in % operator documentation
Message ID:
b77c1dce0802080731ne38ea83x4be075e97341b5bc@mail.gmail.com
On 29/01/2008, via RT mhasch @ cpan. org <perlbug-followup@perl.org> wrote:
> There is a misnomer in the documentation of the % operator.
>
> You don't calculate the modulus of two numbers.  You calculate the
> common residue or remainder of a number with respect to a modulus.
> Thus, in "A = B % C", C is the modulus, while A should be called
> something like common residue or remainder in integer division.
>
> I suggest to fix the paragraph on % in perlop.pod with the patch
> attached below.
>
> Martin Becker (aka Martin Hasch) <mhasch(at)cpan.org>
>
> diff -ru perl-5.10.0/pod/perlop.pod perl-5.10.0-patched/pod/perlop.pod
> --- perl-5.10.0/pod/perlop.pod  Tue Dec 18 11:47:08 2007
> +++ perl-5.10.0-patched/pod/perlop.pod  Tue Jan 29 00:19:31 2008

Thanks, applied to bleadperl.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About