From: Robert Spier Date: Sun, 22 Oct 2000 15:24:32 +0000 (-0400) Subject: Doc patch. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cec39fc8ec218fa1258961f1d0f955a3a72d5bb0;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/lib/strict.pm b/lib/strict.pm index 042227f..8afb9a3 100644 --- a/lib/strict.pm +++ b/lib/strict.pm @@ -37,6 +37,14 @@ use symbolic references (see L). $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 would not break under stricture. + + =item C This generates a compile-time error if you access a variable that wasn't