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

[ID 20010810.011] 'use v2b' not allowed with strict

Thread Next
From:
allen
Date:
August 10, 2001 17:57
Subject:
[ID 20010810.011] 'use v2b' not allowed with strict
Message ID:
200108110056.RAA28020@allen.sandcraft.com

This is a bug report for perl from allen@sandcraft.com,
generated with the help of perlbug 1.20 running under perl 5.006001.


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

the following will show the error:

$ echo "1;" >v2b.pm
$ perl -e 'use strict; use v2b"
Bareword "v2b.pm" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.

It seems to have something to do with the new version number parsing,
as both the "v" and a digit following the "v" are required.

[Please do not change anything below this line]
-----------------------------------------------------------------

---
This perlbug was built using Perl 5.00404 - Wed Jul  8 01:35:11 EDT 1998
It is being executed now by  Perl 5.006001 - Wed Jul 11 11:13:49 PDT 2001.

Site configuration information for perl 5.006001:

Configured by rwerner at Wed Jul 11 11:13:49 PDT 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris
    uname='sunos sandcraft 5.7 generic sun4u sparc sunw,ultra-enterprise '
    config_args=''
    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='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers='solaris2.7'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    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.006001:
	/user/sw/lib/perl5/5.6.1/sun4-solaris
	/user/sw/lib/perl5/5.6.1
	/user/sw/lib/perl5/site_perl/5.6.1/sun4-solaris
	/user/sw/lib/perl5/site_perl/5.6.1
	/user/sw/lib/perl5/site_perl/5.005/sun4-solaris
	/user/sw/lib/perl5/site_perl/5.005
	/user/sw/lib/perl5/site_perl
	.

---
Environment for perl 5.006001:
    HOME=/user/allen
    LANG=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/pbs/bin:/usr/local/pbs/sbin:/user/allen/bin:/user/allen/scripts:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/ucb:/user/sw/bin:/user/yo_10/dvt/bin:/user/yo_10/cad/bin:.
    PERL_BADLANG (unset)
    SHELL=/bin/csh


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