On Sat, Aug 1, 2009 at 15:37, Patrick Dupre<[email protected]> wrote: > > 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 ? snip
Take a look at http://perldoc.perl.org/perlguts.html#References -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
