|There's more than one way to do things|
Re: Not able to pass the hash reference to callback from xsubppby ikegami (Pope)
|on Aug 13, 2013 at 13:36 UTC||Need Help??|
Subs can only take scalars as arguments; you can't pass a hash. You can pass a reference to the hash, though.
Also, you hold two references to the hash for no reason.
Since we know data_hash_ref will outlive data_hash, we can avoid a ref count increment and decrement pair and simplify the above to the following: