From: Rafael Garcia-Suarez Date: Tue, 27 Jun 2006 14:01:30 +0000 (+0000) Subject: Nits in the perlpragma manpage X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02e1e4511d075846a874d09871b45595426ab2df;p=p5sagit%2Fp5-mst-13.2.git Nits in the perlpragma manpage p4raw-id: //depot/perl@28435 --- diff --git a/pod/perlpragma.pod b/pod/perlpragma.pod index c43ff49..12e8124 100644 --- a/pod/perlpragma.pod +++ b/pod/perlpragma.pod @@ -34,7 +34,7 @@ functions much like C You'd like this code no myint; print "E: ", $l + $r, "\n"; - + to give the output A: 4.6 @@ -71,13 +71,13 @@ this: 1; -Note how we load the user pragma C with C<()> to prevent its C -being called. - -The interaction with the Perl compile happens inside package C: +Note how we load the user pragma C with an empty list C<()> to +prevent its C being called. -package myint; +The interaction with the Perl compilation happens inside package C: + package myint; + use strict; use warnings; @@ -117,7 +117,7 @@ for the user's code. User pragmata store their state by writing to the magical hash C<%^H>, hence these two routines manipulate it. The state information in C<%^H> is -stored in the optree, and can be retrieved at runtime with C, at +stored in the optree, and can be retrieved at runtime with C, at index 10 of the list of returned results. In the example pragma, retrieval is encapsulated into the routine C, which takes as parameter the number of call frames to go up to find the value of the pragma in the