develooper Front page | perl.perl5.porters | Postings from September 2010

[perl #77698] -T results in undefined value when stacked first

From:
Peter Scott
Date:
September 5, 2010 23:57
Subject:
[perl #77698] -T results in undefined value when stacked first
Message ID:
rt-3.6.HEAD-5116-1283752694-673.77698-75-0@perl.org
# New Ticket Created by  Peter Scott 
# Please include the string:  [perl #77698]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77698 >


Fairly sure that these should produce the same result:

$ ./perl -Ilib -wE 'say "Okay" if -w -T "perl.c"'
Okay
$ ./perl -Ilib -wE 'say "Okay" if -T -w "perl.c"'
Use of uninitialized value in -T at -e line 1.


$ ./perl -Ilib -V
Summary of my perl5 (revision 5 version 13 subversion 4) configuration:
   Commit id: f1dcae2ca2c256c755eeec79c4e7d4d5b9cf658f
   Platform:
     osname=linux, osvers=2.6.27.24-170.2.68.fc10.i686, archname=i686-linux
     uname='linux tweety.homeip.net 2.6.27.24-170.2.68.fc10.i686 #1 
smp wed may 20 23:10:16 edt 2009 i686 i686 i386 gnulinux '
     config_args='-des -Dusedevel'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=undef, usemultiplicity=undef
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=undef, use64bitall=undef, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
     optimize='-O2',
     cppflags='-fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include'
     ccversion='', gccversion='4.3.2 20081105 (Red Hat 4.3.2-7)', 
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, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
     libc=/lib/libc-2.9.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.9'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
     cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib 
-fstack-protector'


Characteristics of this binary (from libperl):
   Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_USE_DEVEL
                         USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
   Built under linux
   Compiled at Sep  5 2010 19:57:59
   @INC:
     lib
     /usr/local/lib/perl5/site_perl/5.13.4/i686-linux
     /usr/local/lib/perl5/site_perl/5.13.4
     /usr/local/lib/perl5/5.13.4/i686-linux
     /usr/local/lib/perl5/5.13.4
     /usr/local/lib/perl5/site_perl
     .




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