From: Craig A. Berry Date: Tue, 29 Jul 2003 00:11:46 +0000 (-0500) Subject: another File::Find tweak for VMS (improve on #20221) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d8eebbfbaf69416c8b03806075dd4952f30f6a8;p=p5sagit%2Fp5-mst-13.2.git another File::Find tweak for VMS (improve on #20221) From: "Craig A. Berry" Message-ID: <3F260212.9000104@mac.com> p4raw-id: //depot/perl@20281 --- diff --git a/lib/File/Find.pm b/lib/File/Find.pm index 8136cf1..242280b 100644 --- a/lib/File/Find.pm +++ b/lib/File/Find.pm @@ -769,7 +769,7 @@ sub _find_dir($$$) { } } } - unless (chdir ($Is_VMS && $udir !~ /\// ? "./$udir" : $udir)) { + unless (chdir ($Is_VMS && $udir !~ /[\/\[<]+/ ? "./$udir" : $udir)) { warnings::warnif "Can't cd to $udir: $!\n"; return; } @@ -811,7 +811,7 @@ sub _find_dir($$$) { } } } - unless (chdir ($Is_VMS && $udir !~ /\// ? "./$udir" : $udir)) { + unless (chdir ($Is_VMS && $udir !~ /[\/\[<]+/ ? "./$udir" : $udir)) { if ($Is_MacOS) { warnings::warnif "Can't cd to ($p_dir) $udir: $!\n"; }