develooper Front page | perl.perl5.porters | Postings from January 2004

[perl #25655] bleadperl triggers new warnings in Regexp::Common

Thread Next
David Dyck
January 29, 2004 19:36
[perl #25655] bleadperl triggers new warnings in Regexp::Common
Message ID:
# New Ticket Created by  David Dyck 
# Please include the string:  [perl #25655]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.34 running under perl v5.9.0.

[Please enter your report here]

Recent bleading edge version have started causing
Regexp::Common to start issuing warnings that they
didn't before.

$ perl -we 'use Regexp::Common'
Variable "$s" is not available at (re_eval 47) line 1.
Variable "$x" is not available at (re_eval 47) line 1.

Does this indicate a bug in perl or in Regexp::Common?
(the error message makes it a bit difficult to
 identify the offending line(s) of code.

make test with Regexp-Common-2.113 passes all test, but
it too issues many warnings during the tests.

It looks like the warning is comming from

in code like:

	sub {
            use re 'eval';
            my ($s, $x);
            my $re = qr {\b([A-Za-z]+)\b
                         (?(?{($s, $x) = (0, lc $^N);
                              $s += $Regexp::Common::comment::scores
                                    [ord (chop $x) - ord ('a')] while length $x;
                              $s  >= 5 && $s < 18})XXX|)}x;

[Please do not change anything below this line]
Site configuration information for perl v5.9.0:

Configured by dcd at Wed Jan 28 16:15:20 PST 2004.

Summary of my perl5 (revision 5 version 9 subversion 0 patch 22244) configuration:
    osname=linux, osvers=2.4.25-pre6, archname=i686-linux
    uname='linux dd 2.4.25-pre6 #1 fri jan 16 13:23:13 pst 2004 i686 '
    config_args='-Accflags=-DPERL_DISABLE_PMC -Dmksymlinks -Dinstallusrbinperl -Uversiononly -Dusedevel -Doptimize=-O3 -g -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='cc', ccflags ='-DPERL_DISABLE_PMC -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -g',
    cppflags='-DPERL_DISABLE_PMC -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='egcs- 19990314/Linux (egcs-1.1.2 release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldbm -ldb -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/lib/, 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.9.0:

Environment for perl v5.9.0:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About