Hello,
I created an Array, like:
AV *out = newAV () ;
then, I fill it with:
SV *elem = sv_newmortal () ;
sv_setnv (elem, val) ;
av_push (out, elem) ;
where val is a double.
Then, I wanted to change one of the values,
I did a av_fetch and it is OK (just to be sure)
Then, an av_store (out, 1, newSVnv (0.05))
But I get a:
Attempt to free temp prematurely: SV 0xad3a03c, Perl interpreter:
0x9701008 at
What I am doing wrong ?
Thank
--
---
==========================================================================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: pd...@york.ac.uk
==========================================================================
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/