Help for this page

Select Code to Download


  1. or download this
    /* moduletext = text of module + "package main; DynTrans->import;" */
        eval_pv(moduletext, TRUE);         /* ~ use DynTrans; */
        eval_pv("$a = fortytwo();", TRUE); /* its function is available */
    
  2. or download this
    #include <EXTERN.h>
    #include <perl.h>
    static PerlInterpreter *pi;
    ...
        perl_free(pi);
        return 0;
    }
    
  3. or download this
    OUTPUT:
    EXPECT: a = 42
    GOT:    a = 42