summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2012-01-31 23:40:39 -0300
committerFather Chrysostomos <sprout@cpan.org>2012-06-27 08:46:33 -0700
commit0480bf32a69f9d774283a89f33bff387adea72e9 (patch)
tree0ea7c681ac10eca7dc4a9dcada798412442f6101 /pod
parent69a6e56c00ba36ef95335113b7de311b51e24870 (diff)
downloadperl-0480bf32a69f9d774283a89f33bff387adea72e9.tar.gz
perlref: #109408
Diffstat (limited to 'pod')
-rw-r--r--pod/perlref.pod9
1 files changed, 4 insertions, 5 deletions
diff --git a/pod/perlref.pod b/pod/perlref.pod
index 0fab80969a..5f9ce0a06a 100644
--- a/pod/perlref.pod
+++ b/pod/perlref.pod
@@ -543,7 +543,7 @@ People frequently expect it to work like this. So it does.
${$name x 2} = 3; # Sets $foofoo
$name->[0] = 4; # Sets $foo[0]
@$name = (); # Clears @foo
- &$name(); # Calls &foo() (as in Perl 4)
+ &$name(); # Calls &foo()
$pack = "THAT";
${"${pack}::$name"} = 5; # Sets $THAT::foo without eval
@@ -575,7 +575,7 @@ variables, which are all "global" to the package.
=head2 Not-so-symbolic references
-Since Perl verion 5.001, brackets around a symbolic reference can simply
+Brackets around a symbolic reference can simply
serve to isolate an identifier or variable name from the rest of an
expression, just as they always have within a string. For example,
@@ -583,7 +583,7 @@ expression, just as they always have within a string. For example,
print "${push}over";
has always meant to print "pop on over", even though push is
-a reserved word. In 5.001, this was generalized to work the same
+a reserved word. This is generalized to work the same
without the enclosing double quotes, so that
print ${push} . "over";
@@ -592,8 +592,7 @@ and even
print ${ push } . "over";
-will have the same effect. (This would have been a syntax error in
-Perl 5.000, though Perl 4 allowed it in the spaceless form.) This
+will have the same effect. This
construct is I<not> considered to be a symbolic reference when you're
using strict refs: