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

Re: [perl #77094] printf("a\n" =~ /b/)

Thread Previous | Thread Next
From:
Zefram
Date:
August 10, 2010 09:10
Subject:
Re: [perl #77094] printf("a\n" =~ /b/)
Message ID:
20100810161038.GA13256@lake.fysh.org
I wrote:
>sprintf.  The common underlying function is do_sprintf().

But it turns out that CORE::sprintf has a $@ prototype, and so doesn't
invoke this bug after all.  I reckon the underlying bug is CORE::printf
having been given the prototypish behaviour of CORE::print rather than
that of CORE::sprintf.  This accounts for both this stack bug and the
undocumented use of $_.

-zefram

Thread Previous | 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