On Mon, Apr 19, 2004 at 01:20:55PM -0500 Scott T. Hildreth wrote: > Thanks Tassilo! I did not know about savepv, very convenient, like > strdup. Just curious, is the the SV memory being re-used, or is it > not going out of scope? I didn't think it would be static.
It's certainly not static in the C-meaning of the word. AFAIK it gets reused when possible. Perl keeps mortal variables in the pad. When one goes out of scope, I think it is not instantly free()ed but just marked for re-use. Under circumstances, this might lead to this effect of seemingly static memory locations. But you cannot rely on that. BTW: Have a look at perlclib.pod. There you'll find more libc equivalents in the Perl API. Tassilo -- $_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({ pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#; $_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval