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

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

Thread Previous | Thread Next
August 10, 2010 09:10
Re: [perl #77094] printf("a\n" =~ /b/)
Message ID:
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 $_.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About