summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorAnton Tagunov <tagunov@motor.ru>2002-03-04 05:17:40 +0300
committerAbhijit Menon-Sen <ams@wiw.org>2002-03-04 02:19:20 +0000
commitd83fe81478642d61ea67b41c692afcf14811c9af (patch)
tree7fceff45d15aa7beeb6bd4858907e7fab3f3a75f /pod
parentd85a743d827c8b55194ec4ce2b5b444749021b7e (diff)
downloadperl-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')
-rw-r--r--pod/perldata.pod5
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