Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my $c_libary = new C::DynaLib("./modules/test.o")||die "Failed to load
    +: $!\n";
    my $c_subroutine = $c_libary->DeclareSub("test", "p");
    print &{$c_subroutine}
    
  2. or download this
    char* test()
    {
       return "WORKS!";
    }