Ambiguous -%c() resolved as a file test
Paul Marquess [Sun, 10 Dec 2000 15:35:07 +0000 (15:35 +0000)]
Message-ID: <002601c062be$c5f749c0$a20a140a@bfs.phone.com>

p4raw-id: //depot/perl@8074

lib/ExtUtils/Liblist.pm
lib/ExtUtils/MM_Unix.pm

index 5e2f91d..48c0ad5 100644 (file)
@@ -1,5 +1,7 @@
 package ExtUtils::Liblist;
 
+no warnings 'ambiguous'; # silence the -f() file tests.
+
 @ISA = qw(ExtUtils::Liblist::Kid File::Spec);
 
 sub lsdir {
index e926ca7..c88f8f7 100644 (file)
@@ -1712,6 +1712,7 @@ from the perl source tree.
        $self->{PERL_INC}     = $self->catdir("$self->{PERL_ARCHLIB}","CORE"); # wild guess for now
        my $perl_h;
 
+       no warnings 'uninitialized' ;
        if (not -f ($perl_h = $self->catfile($self->{PERL_INC},"perl.h"))
            and not $old){
            # Maybe somebody tries to build an extension with an