Front page | perl.perl5.porters |
Postings from February 2001
[ID 20010226.008] parser confused by autoloaded subroutine
Thread Next
From:
gsar
Date:
February 26, 2001 21:59
Subject:
[ID 20010226.008] parser confused by autoloaded subroutine
Message ID:
200102270559.f1R5x3a12003@smtp3.ActiveState.com
This is a bug report for perl from gsar@ActiveState.com,
generated with the help of perlbug 1.28 running under perl v5.6.0.
-----------------------------------------------------------------
[Please enter your report here]
Here's a much reduced test case of a curious problem.
The bug is sensitive to the number of characters between the two
"EOT"s and the Getopt::Long::Configure() call (hence all those
hash marks). Assuming you preserved the whitespace in the test
case, you should see the following when you run it:
String found where operator expected at (eval 1) line 20, near "GetOptions("a""
xxx
This can be reproduced under Linux and Windows.
----8<----
use Getopt::Long;
eval q[
print <<EOT;
xxx
EOT
#############################################
#############################################
#############################################
if ($x) {
print <<EOT;
yyy
EOT
}
#############################################
#############################################
##############
Getopt::Long::Configure("ignore_case");
GetOptions("a", \$a);];
print $@;
----8<----
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.6.0:
Configured by build at Wed Aug 30 16:29:46 PDT 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.2.15, archname=i686-linux-thread-multi
uname='linux churn.activestate.com 2.2.15 #1 smp thu may 25 03:22:16 pdt 2000 i686 unknown '
config_args='-des -Dcc=gcc -Dcf_email=ActivePerl@ActiveState.com -Uinstallusrbinperl -Dusethreads -Duseithreads -Dprefix=/usr/local/ActivePerl-5.6'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-D_REENTRANT -fno-strict-aliasing'
ccflags ='-D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
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
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lpthread -lc -lposix -lcrypt
libc=/lib/libc-2.1.3.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:
ACTIVEPERL_LOCAL_PATCHES_ENTRY
---
@INC for perl v5.6.0:
/usr/local/ActivePerl-5.6/lib/5.6.0/i686-linux-thread-multi
/usr/local/ActivePerl-5.6/lib/5.6.0
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.0/i686-linux-thread-multi
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.0
/usr/local/ActivePerl-5.6/lib/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/gsar
LANG=en_US
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/gsar/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/sbin
PERL_BADLANG (unset)
SHELL=/bin/tcsh
Thread Next
-
[ID 20010226.008] parser confused by autoloaded subroutine
by gsar