Front page | perl.perl5.porters |
Postings from November 2010
-V flag
From:
H.Merijn Brand
Date:
November 25, 2010 06:45
Subject:
-V flag
Message ID:
20101125154525.3d416704@pc09.procura.nl
$ perl -Vusedevel
Abort
Right, I forgot the :
$ perl -V:usedevel
usedevel='undef';
But why does it abort? Or dump core? Well, it is because -V is just
another option that can be bundled. In this case bundled with -u, which
tells perl to abort.
How likely is it that -V is passed with any other options than perhaps
-I ?
More fun:
$ perl -Vle'print 42'
Summary of my perl5 (revision 5 version 12 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.34.7-0.2-desktop, archname=i686-linux-64int-ld
uname='linux tux09.procura.nl 2.6.34.7-0.2-desktop #1 smp preempt 2010-09-14 14:21:06 +0200 i686 i686 i386 gnulinux '
config_args='-Duse64bitint -Duselongdouble -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=undef, uselongdouble=define
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include'
ccversion='', gccversion='4.5.0 20100604 [gcc-4_5-branch revision 160292]', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-L/pro/local/lib -fstack-protector'
libpth=/pro/local/lib /lib /usr/lib /usr/local/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.11.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.11.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/pro/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_INT
USE_LARGE_FILES USE_LONG_DOUBLE USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Sep 20 2010 11:34:54
@INC:
/pro/lib/perl5/site_perl/5.12.2/i686-linux-64int-ld
/pro/lib/perl5/site_perl/5.12.2
/pro/lib/perl5/5.12.2/i686-linux-64int-ld
/pro/lib/perl5/5.12.2
.
42
$
FWIW, these empty lines at the end do *not* occur in perl-5.10.1
--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.3 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
-
-V flag
by H.Merijn Brand