Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 studying the Monastery: (13)
As of 2014-08-27 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (248 votes), past polls