Patrick Dupre wrote: > > I need to make a XPUSHs of a referene on an array, but XPUSHs takes only > scalar, so it looks like that I need convert my AV* into a scalar > with a newSV, but I do not know exactly. > Can I have some help ?
It would be better to calculate the amount of stack space you need and use EXTEND followed by PUSHs as necessary. But what worries me is that you are trying to write something quite complex without understanding the principle of casting to SV*. Your earlier posts asked how you should embed a perl interpreter into a perl extension. Without proper sight of what you are doing, or at least an example, we cannot help. You should work your way through perldoc perlxstut perldoc perlxs perldoc perlguts perldoc perlapi perldoc perlcall and experiment and understand most of it before you even try to write an XS extension. And remember that it is very difficult. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/