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

[perl #21742] eval 'require Foo::Bar' differs from require Foo::Bar

Thread Next
From:
Michael G Schwern
Date:
March 28, 2003 21:40
Subject:
[perl #21742] eval 'require Foo::Bar' differs from require Foo::Bar
Message ID:
rt-21742-54246.18.1943742044218@bugs6.perl.org
# New Ticket Created by  Michael G Schwern 
# Please include the string:  [perl #21742]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=21742 >


This is a bug report for perl from schwern@pobox.com,
generated with the help of perlbug 1.34 running under perl v5.8.0.


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

$ perl5.8.0 -e 'require Pod::Man;  print $@'
$ perl5.8.0 -e 'eval q[require Pod::Man];  print $@'
Pod/Man.pm did not return a true value at (eval 1) line 3.

This problem occurs in at least 5.8.0 and bleadperl@18374.  It is not
in 5.6.0.

Its pretty serious.  eval q[require Foo::Bar] is the usual way to
check if one has a module installed and causes MakeMaker to incorrectly
assume a module is not installed.  It only appears to be a problem if
the module does not have an explicit true value at the end.

Some discussion about the bug is in this thread:
http://archive.develooper.com/vmsperl@perl.org/msg06569.html


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

Configured by schwern at Sat Feb 22 11:32:44 GMT 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=darwin, osvers=6.4, archname=darwin-64all
    uname='darwin schwerns-computer.local. 6.4 darwin kernel version 6.4: wed jan 29 18:50:42 pst 2003; root:xnuxnu-344.26.obj~1release_ppc power macintosh powerpc '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-pipe -fno-common -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing',
    optimize='-O3 -g',
    cppflags='-no-cpp-precomp -pipe -fno-common -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing'
    ccversion='', gccversion='3.1 20020420 (prerelease)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-flat_namespace -L/sw/lib'
    libpth=/sw/lib /usr/lib
    libs=-lgdbm -ldb -lm -lc
    perllibs=-lm -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -flat_namespace -bundle -undefined suppress -L/sw/lib'

Locally applied patches:
    

---
@INC for perl v5.8.0:
    /sw/lib/perl5
    /usr/local/perl5.8.0/lib/darwin-64all
    /usr/local/perl5.8.0/lib
    /usr/local/perl5.8.0/lib/site_perl/darwin-64all
    /usr/local/perl5.8.0/lib/site_perl
    /usr/local/perl5.8.0/lib/site_perl
    /usr/local/perl5.8.0/lib/vendor/darwin-64all
    /usr/local/perl5.8.0/lib/vendor
    /usr/local/perl5.8.0/lib/vendor
    .

---
Environment for perl v5.8.0:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/schwern
    LANG=en_US
    LANGUAGE=en
    LC_ALL=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/Users/schwern/bin:/usr/local/bin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
    PERL5LIB=/sw/lib/perl5
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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