Skip to content
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

Documentation bug in perlfunc #218

Closed
p5pRT opened this issue Jul 21, 1999 · 2 comments
Closed

Documentation bug in perlfunc #218

p5pRT opened this issue Jul 21, 1999 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Jul 21, 1999

Migrated from rt.perl.org#1025 (status was 'resolved')

Searchable as RT1025$

@p5pRT
Copy link
Author

p5pRT commented Jul 21, 1999

From cpierce1@ford.com

(Other pseudo-pragmas such as "integer" and "diagnostic" are listed.)

@p5pRT
Copy link
Author

p5pRT commented Jul 27, 2000

From [Unknown Contact. See original ticket]

Fixing old bugs....
Original message​:
For both 5.005_02 and 5.005_03 the "use" section of the perl documentation
does not list the pseudo-pragma "use constant", but probably should.

(Other pseudo-pragmas such as "integer" and "diagnostic" are listed.)

Recommended fix to bleadperl, also a grammatical error that just happened
to show up as well.

-spp

Inline Patch
--- perlfunc.orig       Thu Jul 27 12:18:14 2000
+++ perlfunc.pod        Thu Jul 27 12:19:59 2000
@@ -5396,8 +5396,9 @@
 Because this is a wide-open interface, pragmas (compiler directives)
 are also implemented this way.  Currently implemented pragmas are:
 
-    use integer;
+    use constant;
     use diagnostics;
+    use integer;
     use sigtrap  qw(SEGV BUS);
     use strict   qw(subs vars refs);
     use subs     qw(afunc blurfl);
--- perlop.orig Thu Jul 27 12:20:10 2000
+++ perlop.pod  Thu Jul 27 12:21:29 2000
@@ -196,7 +196,7 @@
 C<$a>.  If C<$b> is negative, then C<$a % $b> is C<$a> minus the
 smallest multiple of C<$b> that is not less than C<$a> (i.e. the
 result will be less than or equal to zero). 
-Note than when C<use integer> is in scope, "%" give you direct access
+Note than when C<use integer> is in scope, "%" gives you direct access
 to the modulus operator as implemented by your C compiler.  This
 operator is not as well defined for negative operands, but it will
 execute faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant