develooper Front page | perl.perl5.porters | Postings from July 2001

[ID 20010720.007] need (Missing semicolon on previous line?) message

Thread Next
From:
Vicki Brown
Date:
July 20, 2001 12:31
Subject:
[ID 20010720.007] need (Missing semicolon on previous line?) message
Message ID:
200107201933.f6KJX2061374@cfcl.com

This is a bug report for perl from vlb@cfcl.com,
generated with the help of perlbug 1.33 running under perl v5.6.1.


-----------------------------------------------------------------
[Please enter your report here]

Given this code snippet (foo.pl)

        dbfkeys{msesid} = $msession
        foreach $zzin (keys %in) {
            zzdebug2(3, "$func: zzin=$zzin") if $debug>=3;
            $dbfkeys{$zzin} = $in{$zzin} unless ( $dbfkeys{$zzin});
         }


% perl -c foo.pl
syntax error at foo.pl line 4, near "$zzin ("
syntax error at foo.pl line 7, near "}"
foo.pl had compilation errors.

The actual error is the missing ; on line 3  (hmmm... why is that line 3
and not 2?).

I  would like to see perl -c check for an report the useful
    (Missing semicolon on previous line?)
message here.




[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.6.1:

Configured by vlb at Sat Jun 16 11:53:54 PDT 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=freebsd, osvers=4.2-release, archname=i386-freebsd
    uname='freebsd cfcl.com 4.2-release freebsd 4.2-release #0: mon nov 20 13:02:55 gmt 2000 jkh@bento.freebsd.org:usrsrcsyscompilegeneric i386 '
    config_args='-de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    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='cc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lbind -lm -lc -lcrypt -lutil
    perllibs=-lbind -lm -lc -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fpic', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.6.1:
    /usr/local/lib/perl5/5.6.1/i386-freebsd
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.6.1:
    HOME=/home/vlb
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/vlb/bin:/usr/local/bin:/usr/local/nib:/usr/bin:/bin:/etc:/usr/etc:/sbin:/usr/sbin:/usr/local/games:/usr/games:.:/home/rdm/bin:/home/vlb/projex/ptf/bin
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh


Thread Next


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