summaryrefslogtreecommitdiff
path: root/pod/perlpragma.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-05-22 12:55:13 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-05-22 12:55:13 +0000
commitf4cfebf967017dba26f01e563d0a7a4c1797e4d4 (patch)
tree7e04a720a9530a1aa00e4c82a1a5b38a1907cd3a /pod/perlpragma.pod
parentc07deaaf08ed19dc6900ffcd24cb585805441278 (diff)
downloadperl-f4cfebf967017dba26f01e563d0a7a4c1797e4d4.tar.gz
Fix two nits in perlpragma.pod
p4raw-id: //depot/perl@28268
Diffstat (limited to 'pod/perlpragma.pod')
-rw-r--r--pod/perlpragma.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlpragma.pod b/pod/perlpragma.pod
index 9267babbed..9c4fd2b082 100644
--- a/pod/perlpragma.pod
+++ b/pod/perlpragma.pod
@@ -116,10 +116,10 @@ Hence the C<import> and C<unimport> routines are called at B<compile time>
for the user's code.
User pragmata store their state by writing to C<%^H>, hence these two
-routines manipulate C<%^H>. The state information in C<%^H> stored in the
+routines manipulate C<%^H>. The state information in C<%^H> is stored in the
optree, and can be retrieved at runtime with C<caller>, at index 10 of the
list of returned results. In the example pragma, retrieval is encapsulated
-into the routine C<in_effect()>. This uses C<caller(1)> to determine the
+into the routine C<in_effect()>. This uses C<caller(0)> to determine the
state of C<$^H{myint}> when each line of the user's script was called, and
therefore provide the correct semantics in the subroutine implementing the
overloaded addition.