Abigail on Sun, 17 Jun 2001 13:36:29 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: adjusting the length of an SV?


On Tue, Jun 12, 2001 at 02:40:15PM -0400, Kyle R . Burton wrote:
> > Without actualy using something like sv_setpv, sv_setpvn, or sv_setsv,
> > can I just null out one of the chars, and then adjust the length that
> > Perl has assoicated with the SV?
> > 
> > I can't seem to find any macros or functions in perlguts or perlxs that
> > shows how to adjust this length.
> 
> Sorry, I found it in perlguts:
> 
>   SvCUR_set(SV*,I32)


Note that you should not null out characters - Perl has 8-bit clean strings,
and a null is a valid character.



Abigail
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**