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

[perl #24081] invalid regexp in perl -V

Thread Next
From:
Robin Barker
Date:
October 1, 2003 20:10
Subject:
[perl #24081] invalid regexp in perl -V
Message ID:
rt-24081-65510.14.9413724288293@rt.perl.org
# New Ticket Created by  Robin Barker 
# Please include the string:  [perl #24081]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24081 >


This is a bug report for perl from robin.barker@npl.co.uk,
generated with the help of perlbug 1.34 running under perl v5.8.1.


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

This is an issue with C<config_re> in Config.pm

% perl -V:'?flags'
Surpring works and list all the .*flags config vars.

It works because the regexp used in config_re become
	/^?flags=/
so the ? (optionally) undoes the ^.

Is this a neat feature, or should the -V:regexp only
accept valid regexps?

I have a patch for the latter case [attached].

Robin


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
---
Site configuration information for perl v5.8.1:

Configured by rmb1 at Thu Sep 25 13:55:06 BST 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris-64int
    uname='sunos tempest 5.7 generic_106541-04 sun4u sparc
sunw,ultra-5_10 '
    config_args='-Dcc=/opt/gcc/bin/gcc -des -Dprefix=/opt/perl
-Dman1dir=none -Dman3dir=none -Uinstallusrbinperl -Doptimize=-O -g
-Duse64bitint -Dcf_email=rmb1@cise.npl.co.uk -Dcf_by=Robin Barker
-Dinc_version_list=5.8.0 5.6.1 5.6.0 5.005
-Dotherlibdirs=/usr/local/lib/perl5/site_perl'
    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='/opt/gcc/bin/gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3', gccosandvers='solaris2.7'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/opt/gcc/bin/gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E
-z ignore -z lazyload -z combreloc'
    cccdlflags='-fPIC', lddlflags=' -Wl,-E -G -G  -z ignore -z lazyload
-z combreloc -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.1:
    /home/rmb1/appl/lib/perl5/5.8.1/sun4-solaris-64int
    /home/rmb1/appl/lib/perl5/5.8.1
    /home/rmb1/appl/lib/perl5/site_perl/5.8.1/sun4-solaris-64int
    /home/rmb1/appl/lib/perl5/site_perl/5.8.1
    /home/rmb1/appl/lib/perl5/site_perl/5.8.0
    /home/rmb1/appl/lib/perl5/site_perl/5.6.1
    /home/rmb1/appl/lib/perl5/site_perl/5.6.0
    /home/rmb1/appl/lib/perl5/site_perl/5.005
    /home/rmb1/appl/lib/perl5/site_perl
    /opt/perl/lib/5.8.1/sun4-solaris-64int
    /opt/perl/lib/5.8.1
    /opt/perl/lib/site_perl/5.8.1/sun4-solaris-64int
    /opt/perl/lib/site_perl/5.8.1
    /opt/perl/lib/site_perl/5.8.0
    /opt/perl/lib/site_perl/5.6.1
    /opt/perl/lib/site_perl/5.6.0
    /opt/perl/lib/site_perl/5.005
    /opt/perl/lib/site_perl
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl/5.6.0
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.1:
    HOME=/home/rmb1
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/lib
    LOGDIR (unset)
 
PATH=/home/rmb1/appl/script:/opt/SUNWspci/bin/:/usr/tempest/bin:/usr/loc
al/bin:/usr/local/Admigration/exec:/usr/local/hotjava/bin:/usr/openwin/b
in:/usr/dt/bin:/usr/ccs/bin:/usr/bin
 
PERL5LIB=/home/rmb1/appl/lib/perl5/5.8.1:/home/rmb1/appl/lib/perl5/site_
perl
    PERLDOC=-n 'groff -Tlatin1'
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh



-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Teddington, Middlesex, United Kingdom TW11 0LW.
-------------------------------------------------------------------

-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/65510/48844/26dd1e/configre.gz


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