Subject: | /r for s/// : s///r for Perl-5.14 |
perltidy inserts the unwanted space before /r modifier for s/// operator.
$ rm ~/.perltidyrc
$ echo 's///r;' | perl -c
- syntax OK
$ echo 's///r;' | perltidy | perl -c
Bareword found where operator expected at - line 1, near "s/// r"
syntax error at - line 1, near "s/// r"
- had compilation errors.
Versions are below
===
Summary of my perl5 (revision 5 version 14 subversion 0) configuration:
Platform:
osname=freebsd, osvers=7.4-stable, archname=i386-freebsd-multi-64int
uname='freebsd screwed.box 7.4-stable freebsd 7.4-stable #10: mon
may 2 16:12:55 msd 2011 usr@teh.ost:cfg i386 '
config_args='-sde -Dprefix=/usr/local
-Darchlib=/usr/local/lib/perl5/5.14.0/mach
-Dprivlib=/usr/local/lib/perl5/5.14.0
-Dman3dir=/usr/local/lib/perl5/5.14.0/perl/man/man3
-Dman1dir=/usr/local/man/man1
-Dsitearch=/usr/local/lib/perl5/site_perl/5.14.0/mach
-Dsitelib=/usr/local/lib/perl5/site_perl/5.14.0
-Dscriptdir=/usr/local/bin
-Dsiteman3dir=/usr/local/lib/perl5/5.14.0/man/man3
-Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv
-Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dinc_version_list=none
-Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.14.0/BSDPAN"
-Doptimize=-g -DDEBUGGING -Di_gdbm -Dusethreads=n -Dusemymalloc=y
-Duse64bitint -Dusemultiplicity=y -Dusesitecustomize'
hint=previous, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='cc', ccflags
='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.14.0/BSDPAN" -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include',
optimize='-g',
cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.14.0/BSDPAN"
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.14.0/BSDPAN" -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 20070719 [FreeBSD]', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -Wl,-E -fstack-protector -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lm -lcrypt -lutil
perllibs=-lm -lcrypt -lutil
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-Wl,-R/usr/local/lib/perl5/5.14.0/mach/CORE'
cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib
-fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY MYMALLOC
PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_TRACK_MEMPOOL USE_64_BIT_INT
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
USE_SITECUSTOMIZE
Built under freebsd
Compiled at May 19 2011 18:36:50
@INC:
/usr/local/lib/perl5/5.14.0/BSDPAN
/usr/local/lib/perl5/site_perl/5.14.0/mach
/usr/local/lib/perl5/site_perl/5.14.0
/usr/local/lib/perl5/5.14.0/mach
/usr/local/lib/perl5/5.14.0
.