tfoertsch has asked for the wisdom of the Perl Monks concerning the following question:
Consider this sv:
It is an IV and has an invalid buffer assigned.SV = PVMG(0x2492968) at 0x1e759c8 REFCNT = 1 FLAGS = (PADMY,GMG,SMG,pIOK) IV = 123456 NV = 0 PV = 0x1f76868 "123foobar"\0 CUR = 9 LEN = 16 MAGIC = 0x1f83b18 MG_VIRTUAL = &PL_vtbl_taint MG_TYPE = PERL_MAGIC_taint(t)
How can I do something like $x.=''?
I thought SvUPGRADE($buffer, SVt_PV) is the answer but that changes nothing.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XS question
by BrowserUk (Patriarch) on Jul 16, 2008 at 15:31 UTC | |
|
Re: XS question
by Anonymous Monk on Jul 16, 2008 at 20:38 UTC |