This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add note about symbolic filehandles (from Johan Vromans)
[perl5.git] / lib / strict.pm
index f9d60af..042227f 100644 (file)
@@ -34,6 +34,8 @@ 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
 
 =item C<strict vars>