X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgetcwd.pl;h=eca6ba1127ed159b1592db7e725c82dd81b1aa32;hb=81a4c762684cf629f6e7986fe1827ecd2af35ba2;hp=d8860181c18e41f85dc962bafd506e38de859f51;hpb=1f997daff4fff94748c052f95e7390fac6fc4aec;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/getcwd.pl b/lib/getcwd.pl index d886018..eca6ba1 100644 --- a/lib/getcwd.pl +++ b/lib/getcwd.pl @@ -1,5 +1,14 @@ # By Brandon S. Allbery # +# This library is no longer being maintained, and is included for backward +# compatibility with Perl 4 programs which may require it. +# +# In particular, this should not be used as an example of modern Perl +# programming techniques. +# +# Suggested alternative: Cwd +# +# # Usage: $cwd = &getcwd; sub getcwd @@ -44,9 +53,9 @@ sub getcwd } unless (@tst = lstat("$dotdots/$dir")) { - warn "lstat($dotdots/$dir): $!"; - closedir(getcwd'PARENT); #'); - return ''; + # warn "lstat($dotdots/$dir): $!"; + # closedir(getcwd'PARENT); #'); + # return ''; } } while ($dir eq '.' || $dir eq '..' || $tst[$[] != $pst[$[] ||