develooper Front page | perl.perl5.porters | Postings from November 2000

[ID 20001128.007] Parser error message mistakes brace for bracket

From:
Russell Hansberry
Date:
November 28, 2000 22:40
Subject:
[ID 20001128.007] Parser error message mistakes brace for bracket
Message ID:
3A24A4791D6.67D9RHANS@mail.tsi-net.com
To: perlbug@perl.com Subject: Parser error message mistakes brace for bracket Cc: russell.hansberry@wwireless.com Reply-To: rhans@tsi-net.com  This is a bug report for perl from rhans@tsi-net.com, generated with the help of perlbug 1.20 running under perl 5.00404.   ----------------------------------------------------------------- [Please enter your report here]  The parser generated a misleading error message.  The single line program below reproduces the problem:  {  The parser error message:  Missing right bracket at bug.pl line 1, at end of line syntax error at bug.pl line 1, at EOF Execution of bug.pl aborted due to compilation errors.  The corrected message:  Missing right brace at bug.pl line 1, at end of line syntax error at bug.pl line 1, at EOF Execution of bug.pl aborted due to compilation errors.  Explanation of the correction:  The error is a missing brace.  The parser reported a missing bracket.  For the record, these [] are brackets and these {} are braces.  T!
hi!
s is probably not worth fixing until the next time someone is into the appropriate source module for other reasons.  I could be persuaded to fix the problem if someone would provide some direction to help get me over the learning curve of making Perl fixes.  I have been programming professionally for 30 years but I have no experience in environments such as those supporting Perl.  This seems like an easy opportunity to get acquainted with the support tools and procedures for contributing to the cause. I will be wrapping up work here sometime in Q1 2000 and I have substantial free time now.  Thereafter things may change, for better or worse.    Russell Hansberry rhans@tsi-net.com                 (permanent e-mail) russell.hansberry@wwireless.com   (via current customer)  [Please do not change anything below this line] -----------------------------------------------------------------  --- Site configuration information for perl 5.00404:  Configured by trey at Thu Nov  6 14:48:!
42!
 PST 1997.  Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:   Platform:     osname=solaris, osvers=2.6, archname=sun4-solaris     uname='sunos moe 5.6 generic sun4m sparc sunw,sparcstation-20 '     hint=recommended, useposix=true, d_sigaction=define     bincompat3=y useperlio=undef d_sfio=undef   Compiler:     cc='gcc', optimize='-O', gccversion=2.7.2.3     cppflags='-I/usr/local/include'     ccflags ='-I/usr/local/include'     stdchar='unsigned char', d_stdstdio=define, usevfork=false     voidflags=15, castflags=0, d_casti32=define, d_castneg=define     intsize=4, alignbytes=8, usemymalloc=y, prototype=define   Linker and Libraries:     ld='gcc', ldflags =' -L/usr/local/lib'     libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib     libs=-lsocket -lnsl -ldl -lm -lc -lcrypt     libc=/lib/libc.so, so=so     useshrplib=false, libperl=libperl.a   Dynamic Linking:     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '     cccdlflags='-fpic', lddlflags=!
'-!
G -L/usr/local/lib'  Locally applied patches: 	  --- @INC for perl 5.00404: 	/usr/local/lib/perl5/sun4-solaris/5.00404 	/usr/local/lib/perl5 	/usr/local/lib/perl5/site_perl/sun4-solaris 	/usr/local/lib/perl5/site_perl 	.  --- Environment for perl 5.00404:     HOME=/export/home/cellengr     LANG=C     LD_LIBRARY_PATH=.:/usr/local/lib     LOGDIR (unset)     PATH=.:/usr/local/bin:/usr/sbin:/sbin:/usr/dt/bin:/opt/NSCPcom:.:/usr/local/bin:/usr/sbin:/sbin:/usr/dt/bin:/opt/NSCPcom:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/bin:/usr/ucb:/usr/openwin/bin     PERL_BADLANG (unset)     SHELL=/usr/local/bin/bash 





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About