New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] perlop.pod - misnomer in % operator documentation #9213
Comments
From @mhaschThis is a bug report for perl from mhasch@cpan.org, There is a misnomer in the documentation of the % operator. You don't calculate the modulus of two numbers. You calculate the I suggest to fix the paragraph on % in perlop.pod with the patch Martin Becker (aka Martin Hasch) <mhasch(at)cpan.org> Inline Patchdiff -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
@@ -260,7 +260,7 @@
Binary "/" divides two numbers.
X</> X<slash>
-Binary "%" computes the modulus of two numbers. Given integer
+Binary "%" computes the division remainder of two numbers. Given integer
operands C<$a> and C<$b>: If C<$b> is positive, then C<$a % $b> is
C<$a> minus the largest multiple of C<$b> that is not greater than
C<$a>. If C<$b> is negative, then C<$a % $b> is C<$a> minus the
-----------------------------------------------------------------
---
Site configuration information for perl 5.10.0: [Deleted -- platform details considered irrelevant] |
@rgs - Status changed from 'new' to 'resolved' |
From @rgsOn 29/01/2008, via RT mhasch @ cpan. org <perlbug-followup@perl.org> wrote:
Thanks, applied to bleadperl. |
Migrated from rt.perl.org#50364 (status was 'resolved')
Searchable as RT50364$
The text was updated successfully, but these errors were encountered: