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 <pd...@york.ac.uk> 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: pd...@york.ac.uk
> ==========================================================================

Reply via email to