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

[perl #77384] Passing a ref to warn doesn't append file and line

Thread Next
From:
Ben Morrow
Date:
August 23, 2010 15:02
Subject:
[perl #77384] Passing a ref to warn doesn't append file and line
Message ID:
rt-3.6.HEAD-5116-1282587141-1961.77384-75-0@perl.org
# New Ticket Created by  Ben Morrow 
# Please include the string:  [perl #77384]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77384 >


Passing a ref to warn no longer adds file and line in blead:

    ~/src/perl/perl% ./perl -e'warn []; warn "foo"'
    ARRAY(0x283061c0)foo at -e line 1.

This is a regression from 5.12; it seems to have been introduced by
c5df309... SV-based interfaces for dieing and warning. I can certainly
see the benefit of keeping a ref a ref for as long as possible, but the
final 'print to STDERR' handler needs to say where the warning came
from.

Ben


Thread Next


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