Change 14980 by ams@lustre on 2002/03/04 02:19:20

           Subject: Re[2]: [ID 20020227.016] Fix perldata manpage?
           From: Anton Tagunov <[EMAIL PROTECTED]>
           Date: Mon, 4 Mar 2002 02:17:40 +0300
           Message-Id: <[EMAIL PROTECTED]>

Affected files ...

.... //depot/perl/pod/perldata.pod#40 edit

Differences ...

==== //depot/perl/pod/perldata.pod#40 (text) ====
Index: perl/pod/perldata.pod
--- perl/pod/perldata.pod.~1~   Sun Mar  3 19:30:06 2002
+++ perl/pod/perldata.pod       Sun Mar  3 19:30:06 2002
@@ -759,6 +759,11 @@
         # $f implicitly closed here
     }
 
+Note that if an initialized scalar variable is used instead the 
+result is different: C<my $fh='zzz'; open($h, ...)> is equivalent 
+to C<open( *{'kkk'}, ...)>. 
+C<use strict 'refs'> forbids such practice.
+
 Another way to create anonymous filehandles is with the Symbol
 module or with the IO::Handle module and its ilk.  These modules
 have the advantage of not hiding different types of the same name
End of Patch.

Reply via email to