[EMAIL PROTECTED] (David Harris) wrote:
>T.J. Mather [mailto:[EMAIL PROTECTED]] wrote:
>> However it doesn't work if you apply a non-greedy substitution operator on
>> the scalar.
>
>You mean "global", not "greedy"

True, but not especially helpful in this case.

T.J., if you grok XS you might have a look at this part of
write_client() in Apache.xs:

    for(i = 1; i <= items - 1; i++) {
        int sent = 0;
        SV *sv = SvROK(ST(i)) && (SvTYPE(SvRV(ST(i))) == SVt_PV) ?
                 (SV*)SvRV(ST(i)) : ST(i);
        buffer = SvPV(sv, len);


Try looking at your $text with Devel::Peek to see whether there are any
differences in what it contains in the two cases.



Reply via email to