This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Clarifying that it's OK to work with bareword filehandle names if they're built-ins...
authorJason McIntosh <jmac@jmac.org>
Wed, 15 Apr 2020 02:32:36 +0000 (22:32 -0400)
committerKarl Williamson <khw@cpan.org>
Tue, 28 Apr 2020 17:05:34 +0000 (11:05 -0600)
pod/perlfunc.pod

index 5354d13..cb7cb5d 100644 (file)
@@ -4845,7 +4845,7 @@ An older style is to use a bareword as the filehandle, as
 
 Then you can use C<FH> as the filehandle, in C<< close FH >> and C<<
 <FH> >> and so on.  Note that it's a global variable, so this form is
-not recommended in new code.
+not recommended when dealing with filehandles other than Perl's built-in ones (e.g. STDOUT and STDIN).
 
 =back