Front page | perl.perl5.porters |
Postings from January 2014
[perl #120941] The => operator doesn't quote v-strings in "use constant v1 => 42"
Thread Previous
|
Thread Next
From:
Zoffix Znet
Date:
January 6, 2014 22:41
Subject:
[perl #120941] The => operator doesn't quote v-strings in "use constant v1 => 42"
Message ID:
rt-4.0.18-1791-1389027030-460.120941-75-0@perl.org
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #120941]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=120941 >
This is a bug report for perl from zoffix@zoffix.com,
generated with the help of perlbug 1.39 running under perl 5.18.1.
-----------------------------------------------------------------
[Please describe your issue here]
The fat comma operator (=>) doesn't seem to quote v-strings when used in
the "use BLAH v1 => 42" lines. A particular example is "use constant v1
=> 42" The v1 should be quoted by the => operator, but that line of code
produces a syntax error: "syntax error at -e line 1, near "use
constant v1 =>""
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl 5.18.1:
Configured by zoffix at Wed Dec 25 05:35:45 UTC 2013.
Summary of my perl5 (revision 5 version 18 subversion 1) configuration:
Platform:
osname=linux, osvers=3.11.6-x86_64-linode35, archname=x86_64-linux
uname='linux li328-86 3.11.6-x86_64-linode35 #1 smp wed oct 23
15:24:17 edt 2013 x86_64 gnulinux '
config_args='-de
-Dprefix=/home/zoffix/perl5/perlbrew/perls/perl-5.18.1
-Aeval:scriptdir=/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/bin'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, 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.7.2', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.13'
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.18.1:
/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1/x86_64-linux
/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1
/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/x86_64-linux
/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1
.
---
Environment for perl 5.18.1:
HOME=/home/zoffix
LANG=en_US.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/zoffix/perl5/perlbrew/bin:/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PERLBREW_BASHRC_VERSION=0.67
PERLBREW_HOME=/home/zoffix/.perlbrew
PERLBREW_MANPATH=/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/man
PERLBREW_PATH=/home/zoffix/perl5/perlbrew/bin:/home/zoffix/perl5/perlbrew/perls/perl-5.18.1/bin
PERLBREW_PERL=perl-5.18.1
PERLBREW_ROOT=/home/zoffix/perl5/perlbrew
PERLBREW_VERSION=0.67
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Previous
|
Thread Next