If you take the path of real XS code, be sure to use Devel::PPPort from the start. It'll save you a lot of headaches later.
Then read the docs (twice):
$ perldoc perlxs $ perldoc perlxstut $ perldoc perlxstypemap
In reply to Re^5: perl XS - passing array to C and getting it back
by Tux
in thread perl XS - passing array to C and getting it back
by kopolov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |