X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrict.pm;h=737cb18b1add70d8315dd0e70e45b32fa858e0c3;hb=8b2eb6baf3a025e29d66405a3bae06e917411ea9;hp=f9d60af154e2208ed1f822fcaacb4a2b37514260;hpb=cb50131aab68ac6dda048612c6e853b8cb08701e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/strict.pm b/lib/strict.pm index f9d60af..737cb18 100644 --- a/lib/strict.pm +++ b/lib/strict.pm @@ -34,6 +34,16 @@ use symbolic references (see L). print $$ref; # ok $ref = "foo"; print $$ref; # runtime error; normally ok + $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 @@ -80,7 +90,7 @@ See L. =cut -$strict::VERSION = "1.01"; +$strict::VERSION = "1.02"; my %bitmask = ( refs => 0x00000002,