Help for this page

Select Code to Download


  1. or download this
    #include <stdio.h>
    #include "EXTERN.h"
    ...
            int newval
        CODE:
            my_c_var = newval;
    
  2. or download this
    perl `perl -MConfig -le 'print $Config{privlibexp}'`/ExtUtils/xsubpp -
    +prototypes -typemap `perl -MConfig -le 'print $Config{privlibexp}'`/E
    +xtUtils/typemap Example.xs >
    example.c
    
  3. or download this
    `perl -MConfig -e 'print $Config{cc}'` -o example example.c `perl -MEx
    +tUtils::Embed -e ccopts -e ldopts`
    
  4. or download this
    Perl seems to be initialized.
     
    ...
    get_my_c_var() = 1
    get_my_c_var() = 42
    my_c_var = 42