X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrict.pm;h=737cb18b1add70d8315dd0e70e45b32fa858e0c3;hb=83272a45226e83bd136d713158e9b44ace2dbc8d;hp=042227f967a070abe5323c7c7bb92601cfed3399;hpb=d6fd2b02d50b0bf989dc521c19ed6e9f2fbfb325;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/strict.pm b/lib/strict.pm index 042227f..737cb18 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 @@ -82,7 +90,7 @@ See L. =cut -$strict::VERSION = "1.01"; +$strict::VERSION = "1.02"; my %bitmask = ( refs => 0x00000002,