Front page | perl.perl5.porters |
Postings from April 2011
[perl #89294] @f{qw# a b #} incorrectly warns for some qw delimiters
From:
Eric Brine
Date:
April 26, 2011 09:17
Subject:
[perl #89294] @f{qw# a b #} incorrectly warns for some qw delimiters
Message ID:
rt-3.6.HEAD-32285-1303834613-223.89294-75-0@perl.org
# New Ticket Created by "Eric Brine"
# Please include the string: [perl #89294]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=89294 >
This is a bug report for perl from ikegami@adaelis.com,
generated with the help of perlbug 1.39 running under perl 5.12.2.
-----------------------------------------------------------------
[Please describe your issue here]
$ perl -c -we'my %f; my @a = @f{qw( a b )}'
-e syntax OK
$ perl -c -we'my %f; my @a = @f{qw! a b !}'
-e syntax OK
$ perl -c -we'my %f; my @a = @f{qw# a b #}'
Scalar value @f{qw# a b #} better written as $f{qw# a b #} at -e line 1.
-e syntax OK
$ perl -c -we'my %f; my @a = @f{qw$ a b $}'
Scalar value @f{qw$ a b $} better written as $f{qw$ a b $} at -e line 1.
-e syntax OK
Bug present in all versions tested: v5.8.9, v5.10.1, v5.12.2, v5.13.10.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl 5.12.2:
Configured by eric at Wed Sep 8 16:01:41 EDT 2010.
Summary of my perl5 (revision 5 version 12 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.26-2-686, archname=i686-linux
uname='linux fmdev10 2.6.26-2-686 #1 smp tue mar 9 17:35:51 utc
2010 i686 gnulinux '
config_args='-de -Dprefix=/home/eric/usr/perlbrew/perls/perl-5.12.2'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.3.2', 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=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'
Locally applied patches:
---
@INC for perl 5.12.2:
/home/eric/usr/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/i686-linux
/home/eric/usr/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2
/home/eric/usr/perlbrew/perls/perl-5.12.2/lib/5.12.2/i686-linux
/home/eric/usr/perlbrew/perls/perl-5.12.2/lib/5.12.2
.
---
Environment for perl 5.12.2:
HOME=/home/eric
LANG=en_US.UTF-8
LANGUAGE=
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/eric/usr/perlbrew/bin:/home/eric/usr/perlbrew/perls/current/bin:.:/home/eric/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
PERLBREW_ROOT=/home/eric/usr/perlbrew
PERL_BADLANG (unset)
SHELL=/bin/bash
-
[perl #89294] @f{qw# a b #} incorrectly warns for some qw delimiters
by Eric Brine