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

I would say there is a :: missing on line 7.

No. The OP is exactly correct. That is how Inline C is used. Though it is normal followd by some other arguments; Eg. This is my standard usage:

#! perl -slw use strict; use Inline C => Config => BUILD_NOISY => 1; use Inline C => <<'END_C', NAME => 'rdtsc', CLEAN_AFTER_BUILD => 0; SV *rdtsc() { return newSVuv( (UV)__rdtsc() ); } ... END_C use Data::Dump qw[ pp ]; use GD; ...

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: Using Inline::C in a package
by choroba (Cardinal) on Sep 04, 2013 at 17:02 UTC
    OK, I stand corrected. Is the repetition of the use line also demanded?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Often yes. See my update above.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: Using Inline::C in a package
by rem45acp (Novice) on Sep 04, 2013 at 17:10 UTC
    So does the C code go before the package declaration? I'm confused on where the perl methods go before or after the C code.