On Monday 08 August 2011 16:21:09 Nikola Viktorov wrote: > cout << "[C++] what was received: " << endl; > sv_dump(ST(1)); > > sv_setref_pv(ST(1), NULL, (void *) 4545); > cout << "[C++] after the new value was set: " << endl;
This is not correct. You need to read the ref value from ST(1) and then assign to this ref. Something like: sv_setref_iv( SvRV( ST(1) ) , NULL, 4545) ; (I've made this untested line from an old copy of "Advanced Perl Programming", so the syntax may differ slightly). HTH Dominique -- http://config-model.wiki.sourceforge.net/ -o- http://search.cpan.org/~ddumont/ http://www.ohloh.net/accounts/ddumont -o- http://ddumont.wordpress.com/