X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDirHandle.pm;h=65250c3f8394f3fb8192170534915f31e7086ebf;hb=d9f30342f9de4793189d81b85a5e32057393e428;hp=12ee6c6343d2ad4374f8d5ed261a22f92bf50ae6;hpb=b75c8c73cd7f3c92a16e03fb046f4e2a99363bc7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/DirHandle.pm b/lib/DirHandle.pm index 12ee6c6..65250c3 100644 --- a/lib/DirHandle.pm +++ b/lib/DirHandle.pm @@ -1,6 +1,6 @@ package DirHandle; -our $VERSION = '1.00'; +our $VERSION = '1.01'; =head1 NAME @@ -25,6 +25,20 @@ opendir(), closedir(), readdir(), and rewinddir() functions. The only objective benefit to using C is that it avoids namespace pollution by creating globs to hold directory handles. +=head1 NOTES + +=over 4 + +=item * + +On Mac OS (Classic), the path separator is ':', not '/', and the +current directory is denoted as ':', not '.'. You should be careful +about specifying relative pathnames. While a full path always begins +with a volume name, a relative pathname should always begin with a +':'. If specifying a volume name only, a trailing ':' is required. + +=back + =cut require 5.000; @@ -44,6 +58,9 @@ sub new { sub DESTROY { my ($dh) = @_; + # Don't warn about already being closed as it may have been closed + # correctly, or maybe never opened at all. + no warnings 'io'; closedir($dh); }