This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to Filter::Simple 0.70.
[perl5.git] / lib / strict.pm
index f9d60af..737cb18 100644 (file)
@@ -34,6 +34,16 @@ use symbolic references (see L<perlref>).
     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<goto &$AUTOLOAD> would not break under stricture.
+
 
 =item C<strict vars>
 
@@ -80,7 +90,7 @@ See L<perlmodlib/Pragmatic Modules>.
 
 =cut
 
-$strict::VERSION = "1.01";
+$strict::VERSION = "1.02";
 
 my %bitmask = (
 refs => 0x00000002,