Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

RE: (jcwren) RE: Adding 2 + 2

by merlyn (Sage)
on Sep 11, 2000 at 07:44 UTC ( #31837=note: print w/ replies, xml ) Need Help??


in reply to (jcwren) RE: Adding 2 + 2
in thread Adding 2 + 2

OK, there's the challenge:

use Inline C => 'int add(int a, int b) { return a + b; }'; print add(2,2), "\n";
Hmm. Maybe I should hoist this up as a real snippet. {grin}

-- Randal L. Schwartz, Perl hacker


Comment on RE: (jcwren) RE: Adding 2 + 2
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-10-02 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (55 votes), past polls