Front page | perl.perl5.porters |
Postings from February 2003
scalar question...
Thread Next
From:
Brandon Willis
Date:
February 18, 2003 02:39
Subject:
scalar question...
Message ID:
1045543573.26205.1217.camel@sire.localdomain
How does perl know where the end of a scalar that has a char array
attached is? If I manually do a SvCUR_set(sv,strlen(blah)) and
SvLEN_set(sv,strlen(blah)) to the exact length of the char array will
perl respect that? Do I have to do a *SvEND(sv) = '\0'; to keep perl
from searching for the '\0' end of the string?
I guess my question is if both SvLEN and SvCUR are at the same position
(because I have created the scalar in C and outside the will of perl)
can I force it to respect those boundaries?
--brandon
Thread Next
-
scalar question...
by Brandon Willis