OopS! Sorry..about the list.
Thanks, that worked!
archana
Gerald Richter wrote:
>>your missing the proper mailing list,
>>
>
> Yes
>
> anyway...
>
>
>>>n = perl_call_pv("genericInvoke", G_SCALAR);
>>>
>
> You have to call it in array context, so write:
>
> n = perl_call_pv("genericInvoke
> your missing the proper mailing list,
Yes
anyway...
> > n = perl_call_pv("genericInvoke", G_SCALAR);
You have to call it in array context, so write:
n = perl_call_pv("genericInvoke", G_ARRAY);
Gerald
-
Gerald Richterecos el
your missing the proper mailing list,
unless i am missing something. ;-)
embperl is all about serving up html pages
with embedded perl code.
try:
comp.lang.perl.moderated
comp.lang.perl.misc
Archana Narla wrote:
> HI,
> I have a perl subroutine that is like
> sub test {
> return ( 1
HI,
I have a perl subroutine that is like
sub test {
return ( 12, 34);
}
In my C++ code I'm doing this ...
routine1 () {
dSP;
ENTER;
SAVETMPS;
PUSHMARK(sp);
XPUSHs(sv_2mortal(newSVpv(jStrChars, 0)));
PUTBACK;
n = perl_call_pv("genericInvoke", G_SCALAR);
SPAGAIN;
SV* sv2 = POPs;