On Sat, Nov 27, 2004 at 10:55:39AM -0600, Andy Lester wrote: > On Sat, Nov 27, 2004 at 03:36:48PM -0000, Steve Peters via RT ([EMAIL > PROTECTED]) wrote: > > +Some operating systems may allow a C<IO::File::new> or C<IO::File::open> > > +to be performed on a directory without errors. This behavior is not > > +portable and not suggested for use. Instead, C<opendir> and C<readdir> or > > +C<DirHandle> suggested instead. > > Let's ditch the passive voice and be more definitive. > > Some operatings systems may perform a C<IO::File::new> or > C<IO::File::open> without errors. This behavior returns raw information > about the directory, and is not portable. Instead, use C<opendir> and > C<readdir> or the C<DirHandle> module. > > Thanks for digging this up again. > > xoa >
Better still, let's mention directories earlier... Some operatings systems may perform a C<IO::File::new> or C<IO::File::open> on directories without errors. This behavior returns raw information about the directory, and is not portable. Instead, use C<opendir> and C<readdir> or the C<DirHandle> module. Steve Peters [EMAIL PROTECTED]
