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

[perl #119415] report more variable names in warning and error messages

From:
Tony Cook
Date:
August 22, 2013 01:33
Subject:
[perl #119415] report more variable names in warning and error messages
Message ID:
rt-3.6.HEAD-1873-1377135217-659.119415-75-0@perl.org
# New Ticket Created by  Tony Cook 
# Please include the string:  [perl #119415]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119415 >



This is a bug report for perl from tony@develop-help.com,
generated with the help of perlbug 1.39 running under perl 5.19.3.


-----------------------------------------------------------------
[Please describe your issue here]

Currently perl reports variable names for only a limited number of
warning and error messages.

It would be useful if they could be reported for more messages.

Some examples:

Can't call method "foo" on an undefined value

Use of reference "SCALAR(0x1e8dbf0)" as array index

Argument "a" isn't numeric in multiplication (*)

Briefly discussed in [perl #3330].

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=wishlist
---
Site configuration information for perl 5.19.3:

Configured by tony at Mon Aug 19 14:37:30 EST 2013.

Summary of my perl5 (revision 5 version 19 subversion 3) configuration:
  Commit id: a963e2b287c3184467a914de519fd48e84bc57b4
  Platform:
    osname=linux, osvers=3.2.0-4-amd64, archname=x86_64-linux-thread-multi
    uname='linux mars 3.2.0-4-amd64 #1 smp debian 3.2.41-2 x86_64 gnulinux '
    config_args='-des -Dusedevel -Dprefix=/home/tony/perl/v5.19.2-522-g819435d -Duseithreads'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.7.2', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.13'
  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'


---
@INC for perl 5.19.3:
    /home/tony/perl/v5.19.2-522-g819435d/lib/site_perl/5.19.3/x86_64-linux-thread-multi
    /home/tony/perl/v5.19.2-522-g819435d/lib/site_perl/5.19.3
    /home/tony/perl/v5.19.2-522-g819435d/lib/5.19.3/x86_64-linux-thread-multi
    /home/tony/perl/v5.19.2-522-g819435d/lib/5.19.3
    .

---
Environment for perl 5.19.3:
    HOME=/home/tony
    LANG=en_AU.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/tony/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    PERL_BADLANG (unset)
    SHELL=/bin/bash




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