Re: store hoh
[email protected] (Josh Goldberg)
| Newsgroups | perl.xs |
|---|---|
| Message-ID | <[email protected]> |
Convert your HV to an RV, then you can add it to an existing HV. e.g. hv_store(someHV, "key", 3, newRV_inc((SV *)otherHV), 0); On Wed, Mar 31, 2010 at 9:21 AM, Patrick Dupre <[email protected]> wrote: > Hello, > > How can I store a hash inside a hash (to create a hash of hash) with > XS ? > hv_store only accept SV*, so I probably need to store my > hash inside a SV first ! > > Thank. > > -- > --- > ========================================================================== > Patrick DUPRÉ | | > Department of Chemistry | | Phone: (44)-(0)-1904-434384 > The University of York | | Fax: (44)-(0)-1904-432516 > Heslington | | > York YO10 5DD United Kingdom | | email: [email protected] > ==========================================================================