develooper Front page | perl.perl5.porters | Postings from February 2016

[perl #127604] false positive: POSIX syntax [. .] belongs insidecharacter classes in regex

Thread Previous
From:
Mark Martinec
Date:
February 24, 2016 00:07
Subject:
[perl #127604] false positive: POSIX syntax [. .] belongs insidecharacter classes in regex
Message ID:
rt-4.0.18-29861-1456272431-974.127604-75-0@perl.org
# New Ticket Created by  Mark Martinec 
# Please include the string:  [perl #127604]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127604 >



This is a bug report for perl from Mark.Martinec@ijs.si,
generated with the help of perlbug 1.40 running under perl 5.23.8.


-----------------------------------------------------------------
[Please describe your issue here]

Came across the following warning in Net/DNS/Resolver/Base.pm,
issued by perl 5.23.8 (test case minimized) :

  $ perl -e 'use strict; use warnings; "test" =~ /[.].*[.]/'

  POSIX syntax [. .] belongs inside character classes
    (but this one isn't implemented) in regex;
    marked by <-- HERE in m/[.].*[.] <-- HERE
    / at -e line 1.

Although this regexp is unnecessarily complicated, it seems
the perl is confused about what the syntax means.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.23.8:

Configured by mark at Tue Feb 23 19:43:47 CET 2016.

Summary of my perl5 (revision 5 version 23 subversion 8) configuration:
   
  Platform:
    osname=freebsd, osvers=10.3-beta2, archname=amd64-freebsd
    uname='freebsd neli.ijs.si 10.3-beta2 freebsd 10.3-beta2 #0 r295700: wed feb 17 16:32:27 cet 2016 mark@neli.ijs.si:usrobjusrsrcsysneli amd64 '
    config_args='-de -Dprefix=/home/mark/perl5/perlbrew/perls/perl-5.23.8 -Dusedevel -Aeval:scriptdir=/home/mark/perl5/perlbrew/perls/perl-5.23.8/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2',
    optimize='-O',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib /usr/include/clang/3.4.1 /usr/lib
    libs=-lpthread -lgdbm -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib -fstack-protector'


---
@INC for perl 5.23.8:
    /home/mark/perl5/perlbrew/perls/perl-5.23.8/lib/site_perl/5.23.8/amd64-freebsd
    /home/mark/perl5/perlbrew/perls/perl-5.23.8/lib/site_perl/5.23.8
    /home/mark/perl5/perlbrew/perls/perl-5.23.8/lib/5.23.8/amd64-freebsd
    /home/mark/perl5/perlbrew/perls/perl-5.23.8/lib/5.23.8
    .

---
Environment for perl 5.23.8:
    HOME=/home/mark
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=en_US.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/mark/perl5/perlbrew/bin:/home/mark/perl5/perlbrew/perls/perl-5.23.8/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/mark/go/bin
    PERLBREW_BASHRC_VERSION=0.59
    PERLBREW_HOME=/home/mark/.perlbrew
    PERLBREW_MANPATH=/home/mark/perl5/perlbrew/perls/perl-5.23.8/man
    PERLBREW_PATH=/home/mark/perl5/perlbrew/bin:/home/mark/perl5/perlbrew/perls/perl-5.23.8/bin
    PERLBREW_PERL=perl-5.23.8
    PERLBREW_ROOT=/home/mark/perl5/perlbrew
    PERLBREW_VERSION=0.73
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash


Thread Previous


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