Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

perl xs pass an array by reference

by andromedia33 (Novice)
on Dec 03, 2012 at 20:23 UTC ( #1006944=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #include "myfunction.h"
    double do_nothing(double *para)
    {
       return para[0];
    }
    
  2. or download this
    double do_nothing(double *)
    
  3. or download this
    #include "myfunction.h" (and the rest of the XSUB header files)
    
    ...
    
    double do_nothing(x)
       double * x
    
  4. or download this
    double * T_SV
    
  5. or download this
    my @array = (1.1,1.2);
    is(&myfunction::do_nothing(\@array),1.1);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1006944]
Approved by kcott
Front-paged by bulk88
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (16)
As of 2014-11-24 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (143 votes), past polls