diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-02-01 16:24:11 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-02-17 14:57:06 +0000 |
commit | fd172bcd67687fb9a94b92c46d2c582cce40a2c1 (patch) | |
tree | b891ae4a3a86639dc2e280aae6d2173919ad029c /ext/IO | |
parent | 85ca31585f272964329771671d2ea2fff9ec765d (diff) | |
download | perl-fd172bcd67687fb9a94b92c46d2c582cce40a2c1.tar.gz |
[perl #31730] [PATCH] IO::File reads garbage from directory filehandles
From: "Steve Peters via RT" <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-31730-107010.1.24399823945417@perl.org>
p4raw-id: //depot/perl@23974
Diffstat (limited to 'ext/IO')
-rw-r--r-- | ext/IO/lib/IO/File.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/IO/lib/IO/File.pm b/ext/IO/lib/IO/File.pm index f354f7686f..8c778f70b3 100644 --- a/ext/IO/lib/IO/File.pm +++ b/ext/IO/lib/IO/File.pm @@ -103,12 +103,20 @@ passed on to the C<binmode> call. =back +=head1 NOTE + +Some operating systems may perform C<IO::File::new()> or C<IO::File::open()> +on a directory without errors. This behavior is not portable and not +suggested for use. Using C<opendir()> and C<readdir()> or C<IO::Dir> are +suggested instead. + =head1 SEE ALSO L<perlfunc>, L<perlop/"I/O Operators">, -L<IO::Handle> -L<IO::Seekable> +L<IO::Handle>, +L<IO::Seekable>, +L<IO::Dir> =head1 HISTORY |