Re[2]: [ID 20020227.016] Fix perldata manpage?
authorAnton Tagunov <tagunov@motor.ru>
Mon, 4 Mar 2002 02:17:40 +0000 (05:17 +0300)
committerAbhijit Menon-Sen <ams@wiw.org>
Mon, 4 Mar 2002 02:19:20 +0000 (02:19 +0000)
   Message-Id: <1344322124.20020304021740@motor.ru>

p4raw-id: //depot/perl@14980

pod/perldata.pod

index 9478cc8..842f437 100644 (file)
@@ -759,6 +759,11 @@ that must be passed around, as in the following example:
         # $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