ginttu has asked for the wisdom of the Perl Monks concerning the following question:
############### # C code # Hello, World void print_hello (void) { printf("Hello, World\n"); } ############### # XS code # Hello, World #include "EXTERN.h" #include "perl.h" #include "XSUB.h" MODULE = Hello PACKAGE = Hello void print_hello()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XS Library - Embedding C code in Perl
by Zaxo (Archbishop) on Nov 14, 2002 at 00:11 UTC | |
|
Re: XS Library - Embedding C code in Perl
by talexb (Chancellor) on Nov 13, 2002 at 22:34 UTC | |
by rob_au (Abbot) on Nov 13, 2002 at 22:56 UTC | |
by bart (Canon) on Nov 13, 2002 at 22:50 UTC | |
|
Re: XS Library - Embedding C code in Perl
by tachyon (Chancellor) on Nov 13, 2002 at 23:40 UTC | |
|
Re: XS Library - Embedding C code in Perl
by Elian (Parson) on Nov 14, 2002 at 00:19 UTC |