Re: glob() on VMS totally different than Unix.

[email protected] ("Craig A. Berry")
Newsgroups perl.perl5.porters,perl.vmsperl
Message-ID <[email protected]>
On Jan 22, 2009, at 9:03 AM, John Malmberg wrote:

> Peter Prymmer wrote:
>>

>>
>> There is also some advice in the perlport.pod document:
>>  Don't count on filename globbing.  Use C<opendir>, C<readdir>, and
>>  C<closedir> instead.
>
> Based on that, the Module::Build component that is using glob needs  
> to be changed to use File::Glob::glob instead.
>

Adding this:

--- lib/Module/Build/Base.pm;-0 2009-01-14 11:50:10 -0600
+++ lib/Module/Build/Base.pm    2009-01-22 10:49:17 -0600
@@ -12,6 +12,7 @@ use Carp;
  use Cwd ();
  use File::Copy ();
  use File::Find ();
+use File::Glob ':globally';
  use File::Path ();
  use File::Basename ();
  use File::Spec 0.82 ();
[end]

does keep foo.PL from getting deleted, but overall changes the  
Module::Build score on VMS from:

Failed 3/28 test programs. 17/985 subtests failed.

to:

Failed 8/28 test programs. 36/985 subtests failed.

So that's clearly a step in the wrong direction.  I'm working on  
alternatives.

________________________________________
Craig A. Berry
mailto:[email protected]

"... getting out of a sonnet is much more
  difficult than getting in."
                  Brad Leithauser
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.