[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[ID 19991231.001] interpolation of $_ is busted

This is a bug report for perl from schuller@lunatech.com
generated with the help of perlbug 1.27 running under perl 5.00562.

[Please enter your report here]

I've found a bug in interpolation of $_ when followed by the characters [] .

$ perl5.00503 -e '$_="a"; print "${_}[]\n"'
$ perl5.00562 -e '$_="a"; print "${_}[]\n"'

Leaving off the curlies gives

$ perl5.00562 -e '$_="a"; print "$_[]\n"'
syntax error at -e line 1, near "[]"
Execution of -e aborted due to compilation errors.

So I don't know how to follow $_ with literal square brackets other than
concatenating two different strings.

[Please do not change anything below this line]

Site configuration information for perl 5.00562:

Configured by schuller at Sat Oct 16 13:14:32 CEST 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 62) configuration:
    osname=linux, osvers=2.2.9, archname=i686-linux-thread
    uname='linux sep 2.2.9 #17 sun may 16 16:29:28 cest 1999 i686 unknown '
    config_args='-des -Dprefix=/big/perl -Uinstallusrbinperl -Dusethreads -Ubincompat5005'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
    cc='cc', optimize='-O2', gccversion=2.95.2 19990906 (prerelease)
    cppflags='-D_REENTRANT -Dbool=char -DHAS_BOOL -fno-strict-aliasing -I/usr/local/include'
    ccflags ='-D_REENTRANT -Dbool=char -DHAS_BOOL -fno-strict-aliasing -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt
    libc=/lib/libc-2.1.2.so, 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 5.00562:

Environment for perl 5.00562:
    LANG (unset)
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Follow-Ups from:
Ronald J Kimball <rjk@linguist.dartmouth.edu>
Larry Wall <larry@wall.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]