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

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

From:
James E Keenan via RT
Date:
September 22, 2014 23:11
Subject:
[perl #119415] report more variable names in warning and error messages
Message ID:
rt-4.0.18-22892-1411427495-703.119415-15-0@perl.org
On Wed Aug 21 18:33:36 2013, tonyc wrote:
> 
> 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 (*)
> 

Tony:

I see all of the above warnings listed above in core source code and tests.

Can you give examples of other warnings which should similarly interpolate variable names?

Thank you very much.


-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=119415



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