Hello, I did fail in trying to change value in XS when I pass a reference: Typically: in perl: my $a = 5 ; test (\a) ; in XS void test (nb) int *nb CODE: (*nb)++ ; It does work, Should I use a ref on a ref ? -- --- ========================================================================== 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: pd520@york.ac.uk ==========================================================================Thread Next