Re: Totally lost on how to get the argv of Perl

2009-08-01 Thread Shawn H. Corey
Andrew Steinborn wrote: I need to know how to get the arguments passed to Perl. I'm using the ActiveState built version of Perl on Windows Vista. Perl loads the command-line arguments into the special variable @ARGV See `perldoc perlvar`. -- Just my 0.0002 million dollars worth, Shaw

XS, get/set value when passing a ref

2009-08-01 Thread Patrick Dupre
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 ? -- --- ==

Re: XS, get/set value when passing a ref

2009-08-01 Thread Chas. Owens
On Sat, Aug 1, 2009 at 15:37, Patrick Dupre 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 ?