Stas Bekman wrote:
> Actually I think the current code has another bug. If you do:
> 
>    my $x = 1;
>    print(\$x);
> 
> I'd expect it to print 1 and it won't, because $x is IV and not PV. So I'd 
> completely drop any checks for PV, and coerce any reference into PV, like so:
> 
>          SV *sv = SvROK(ST(i)) ? (SV*)SvRV(ST(i)) : ST(i);
>          buffer = SvPV(sv, len);

Fine by me. As long as the changelog lists this change :)

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to