Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Using module with c code in perl program.

by stevieb (Canon)
on Dec 21, 2015 at 17:49 UTC ( #1150870=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package c_calc;
    use Inline C;
    ...
    int test(int num){
        return num;
    }
    
  2. or download this
    use warnings;
    use strict;
    ...
    my $num = c_calc::test(5);
    
    print $num;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1150870]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2023-03-22 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?