Front page | perl.perl5.porters |
Postings from March 2000
[ID 20000330.024] Problem with $^V
From:
Stephen P. Potter
Date:
March 30, 2000 08:50
Subject:
[ID 20000330.024] Problem with $^V
Message ID:
200003301658.LAA02817@spp.users.ds.net
This is a bug report for perl from spp@steve.spphome.com,
generated with the help of perlbug 1.26 running under perl 5.006.
-----------------------------------------------------------------
[Please enter your report here]
I understand from the perlvar man page that $^V returns
chr(5).chr(6).chr(0). I don't see the value of this as that is rarely (if
ever) going to return something legible, and it breaks existing behaviour
with use English and $PERL_VERSION.
> perl -e 'print $^V'
e
> perl5.00503 -MEnglish -e 'print "$PERL_VERSION\n"'
5.00503
> perl -MEnglish -e 'print "$PERL_VERSION\n"'
e
(The above line shows up as either "e" or an "LF" character, depending on
the encoding).
I don't know whether there should be a wide ranging change that corrects
all X.X.X (or vX.X.X) problems, or just a special case for $^V. In either
case, when used in a string context, $^V and especially $PERL_VERSION
should return something ligible, such as 5.00600 (as old was) or 5.6.0 (as
new).
-spp
(Hmmm... strange I got the 5.00503 perlbug, not the 5.6.0 version... must
be a wierdness in my path somewhere)
[Please do not change anything below this line]
-----------------------------------------------------------------
---
This perlbug was built using Perl 5.00503 - Mon Aug 30 23:08:56 EDT 1999
It is being executed now by Perl 5.006 - Mon Mar 27 21:08:30 EST 2000.
Site configuration information for perl 5.006:
Configured by spp at Mon Mar 27 21:08:30 EST 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.2.12-20, archname=i686-linux
uname='linux steve.spphome.com 2.2.12-20 #1 mon sep 27 10:40:35 edt 1999 i686 unknown '
config_args='-des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-fno-strict-aliasing'
ccflags ='-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='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -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.006:
/usr/local/lib/perl5/5.6.0/i686-linux
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.
---
Environment for perl 5.006:
HOME=/home/spp
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/spp/bin:/usr/local/FM556_linux/bin:/home/spp/bin:/usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
PERL_BADLANG (unset)
SHELL=/bin/tcsh