Front page | perl.perl5.porters |
Postings from October 2003
[perl #24076] "<> err EXPR" and warnings.
Thread Next
From:
perlbug-followup
Date:
October 1, 2003 21:01
Subject:
[perl #24076] "<> err EXPR" and warnings.
Message ID:
rt-24076-65496.16.9190832411819@rt.perl.org
# New Ticket Created by abigail@abigail.nl
# Please include the string: [perl #24076]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24076 >
This is a bug report for perl from abigail@abigail.nl,
generated with the help of perlbug 1.34 running under perl v5.9.0.
-----------------------------------------------------------------
[Please enter your report here]
$ /opt/perl/5.9.0/bin/perl -ce 'use warnings; $_ = <> err exit'
Value of <HANDLE> construct can be "0"; test with defined() at -e line 1.
-e syntax OK
$
That warning shouldn't be there, as 'err' is already a test for definedness.
Here's a TODO test patch (which requires the patch I send earlier tonight):
--- t/lib/warnings/op.orig Tue Sep 30 23:22:07 2003
+++ t/lib/warnings/op Tue Sep 30 23:31:48 2003
@@ -1037,3 +1037,10 @@
Useless localization of substr at - line 48.
Useless localization of match position at - line 49.
Useless localization of vec at - line 50.
+########
+# op.c
+# TODO
+use warnings 'misc';
+$_ = <DATA> err exit;
+EXPECT
+
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl v5.9.0:
Configured by abigail at Tue Sep 30 21:24:31 CEST 2003.
Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 21387) configuration:
Platform:
osname=linux, osvers=2.4.18-bf2.4, archname=i686-linux-64int-ld
uname='linux alexandra 2.4.18-bf2.4 #1 son apr 14 09:53:28 cest 2002 i686 unknown '
config_args='-des -Dusedevel -Dusemorebits -Uversiononly -Dmydomain=.abigail.nl -Dcf_email=abigail@abigail.nl -Dperladmin=camel@abigail.nl -Doptimize=-g -Dcc=gcc -Dprefix=/opt/perl/5.9.0'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef 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='gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-g',
cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.0.4', 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='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
DEVEL20173
---
@INC for perl v5.9.0:
/home/abigail/Perl
/opt/perl/5.9.0/lib/5.9.0/i686-linux-64int-ld
/opt/perl/5.9.0/lib/5.9.0
/opt/perl/5.9.0/lib/site_perl/5.9.0/i686-linux-64int-ld
/opt/perl/5.9.0/lib/site_perl/5.9.0
/opt/perl/5.9.0/lib/site_perl
.
---
Environment for perl v5.9.0:
HOME=/home/abigail
LANG=C
LANGUAGE (unset)
LD_LIBRARY_PATH=/home/abigail/Lib:/usr/local/lib:/usr/lib:/lib:/usr/X11R6/lib
LOGDIR (unset)
PATH=/home/abigail/Bin:/opt/perl/bin:/usr/local/bin:/usr/local/X11/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/games:/usr/share/texmf/bin:/opt/Acrobat/bin:/opt/java/blackdown/j2sdk1.3.1/bin:/usr/local/games/bin
PERL5LIB=/home/abigail/Perl
PERLDIR=/opt/perl
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #24076] "<> err EXPR" and warnings.
by perlbug-followup