in reply to XS code returns GLOB instead of IV

I am not familiar with what you are trying to do, but...

GLOB components need to be dereferenced to see their components. For example, if you are expecting an integer, then you are probably looking for the SCALAR component of the GLOB. Try: print ${savestack_ix()}

Update: This does not describe the real problem that diotalevi is experiencing. See my later answer for the proper solution.

Replies are listed 'Best First'.
Re^2: XS code returns GLOB instead of IV
by diotalevi (Canon) on Dec 23, 2002 at 20:52 UTC

    Unfortunately that's not the problem. I'm getting a glob where I should be getting an integer. If I were expecting a glob then yes, I'd want to ask for the scalar part of it.


    Fun Fun Fun in the Fluffy Chair