Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Using Inline::C in a package

by davido (Cardinal)
on Sep 04, 2013 at 18:16 UTC ( [id://1052409]=note: print w/replies, xml ) Need Help??


in reply to Re: Using Inline::C in a package
in thread Using Inline::C in a package

To clarify why it's "that way":

You actually are using Inline, with the C plugin. So "C" is an argument passed to Inline similar to how a function name might be specified in an import list.

The reason it's often seen "bare" is because it's quite common to do it this way:

use Inline C => 'DATA'; # ... __DATA__ __C__ /* C code here */

In which case the "C" is actually quoted by the fat comma (=>) operator.

Multiple uses of Inline C =>... are common and ok; one is often used to specify configuration settings, while others are used to initiate inline code sequences either via a here-doc or the __DATA__ segment.


Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found