summaryrefslogtreecommitdiff
path: root/lib/strict.pm
diff options
context:
space:
mode:
authorRobert Spier <rspier@pobox.com>2000-10-22 11:24:32 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-22 21:32:00 +0000
commitcec39fc8ec218fa1258961f1d0f955a3a72d5bb0 (patch)
tree76c9872747c6e5a8a3b6fee6208e93f349ddbe29 /lib/strict.pm
parent0b27bdda4132eec7d3a41691839fba5d1251c38a (diff)
downloadperl-cec39fc8ec218fa1258961f1d0f955a3a72d5bb0.tar.gz
Doc patch.
Subject: [ID 19991128.002] \&{'foo'} not caught by strict refs Message-ID: <14835.16112.13457.447971@rls.cx> p4raw-id: //depot/perl@7405
Diffstat (limited to 'lib/strict.pm')
-rw-r--r--lib/strict.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/strict.pm b/lib/strict.pm
index 042227f967..8afb9a3792 100644
--- a/lib/strict.pm
+++ b/lib/strict.pm
@@ -37,6 +37,14 @@ use symbolic references (see L<perlref>).
$file = "STDOUT";
print $file "Hi!"; # error; note: no comma after $file
+There is one exception to this rule:
+
+ $bar = \&{'foo'};
+ &$bar;
+
+is allowed so that C<goto &$AUTOLOAD> would not break under stricture.
+
+
=item C<strict vars>
This generates a compile-time error if you access a variable that wasn't