X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrict.pm;h=8afb9a37921c13127577a5cd8e129517b58bc46d;hb=847a5fae45dac396d0f9e1bb61d5b4ff9d94cdcd;hp=f9d60af154e2208ed1f822fcaacb4a2b37514260;hpb=17f410f9a3a4ae9cda502b59b391e6653db436ce;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/strict.pm b/lib/strict.pm index f9d60af..8afb9a3 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