> > The question is whether there is a > > function like perl_get_sv(), but for lexical variables? > > I don't know. Someone else?
Have a look at: http://search.cpan.org/~robin/PadWalker/ It's not 'easy', but you should be able to copy/reuse some of the code. Regards, jez.