Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 pondering the Monastery: (8)
As of 2014-08-21 23:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls