diff options
author | Anton Tagunov <tagunov@motor.ru> | 2002-03-04 05:17:40 +0300 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2002-03-04 02:19:20 +0000 |
commit | d83fe81478642d61ea67b41c692afcf14811c9af (patch) | |
tree | 7fceff45d15aa7beeb6bd4858907e7fab3f3a75f /pod/perldata.pod | |
parent | d85a743d827c8b55194ec4ce2b5b444749021b7e (diff) | |
download | perl-d83fe81478642d61ea67b41c692afcf14811c9af.tar.gz |
Re[2]: [ID 20020227.016] Fix perldata manpage?
Message-Id: <1344322124.20020304021740@motor.ru>
p4raw-id: //depot/perl@14980
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r-- | pod/perldata.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index 9478cc88b4..842f437df0 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -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 |