develooper Front page | perl.perl5.porters | Postings from March 2000

[ID 20000330.008] no warnings doesn't overrule use warnings

Thread Previous | Thread Next
From:
Andreas J. Koenig
Date:
March 30, 2000 03:38
Subject:
[ID 20000330.008] no warnings doesn't overrule use warnings
Message ID:
200003301138.NAA20569@ak-71.mind.de
This is a bug report for perl from k@ak-71.mind.de,
generated with the help of perlbug 1.28 running under perl v5.6.0.


-----------------------------------------------------------------
[Please enter your report here]

Thanks to a bugreport by Larry Virden I could track down various warnings that
sometimes appear during CPAN.pm's r command. These can be traced back to the
following smaller testcase. The testcase is based on code found in CGI::Base.

% perl -we '
use warnings;
{
  my $eval = q[
            package ExtUtils::MakeMaker::_version;
            no strict;

            local $VERSION;
            $VERSION=undef; do {
                ($VERSION = $Revision) =~ s/.*(\d+\.\d+).*/$1/;
            }; $VERSION
        ];
  no warnings;
  eval($eval);
}
'
Use of uninitialized value in substitution (s///) at (eval 1) line 7.
% 

I would expect that this should be silent.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.6.0:

Configured by k at Thu Mar 23 23:27:40 CET 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.15pre14, archname=i686-linux
    uname='linux ak-71.mind.de 2.2.15pre14 #1 smp wed mar 15 15:37:15 cet 2000 i686 unknown '
    config_args='-Dprefix=/usr/local/perl-5.6.0 -Doptimize=-g -Dusemymalloc -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-g', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc-2.1.2.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.6.0:
    /usr/local/perl-5.6.0/lib/5.6.0/i686-linux
    /usr/local/perl-5.6.0/lib/5.6.0
    /usr/local/perl-5.6.0/lib/site_perl/5.6.0/i686-linux
    /usr/local/perl-5.6.0/lib/site_perl/5.6.0
    /usr/local/perl-5.6.0/lib/site_perl
    .

---
Environment for perl v5.6.0:
    HOME=/home/k
    LANG=en_US
    LANGUAGE (unset)
    LC_ALL=en_US
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/k/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/perl/bin:/usr/X11/bin:/sbin:/usr/sbin:/usr/local/Office51/bin
    PERL_BADLANG (unset)
    SHELL=/bin/zsh

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About