Example #1 README
This is an example Perl extension that creates, uses and destroys
C++ structs - from within Perl space. A very basic example.
A pointer to an instance of a C++ object is stuffed into a Perl-space
IV, and only manipulated using wrapper functions exported into
Perl space that take this IV/pointer as their first argument.
References & credits:
- `man perlembed`
- `man perlxstut`
- `man perlxs`
- `man perlguts`
- "Advanced Perl Programming", "Programming Perl", "Perl in a Nutshell",
"Perl Cookbook" - all four from O'Reilly & Associates
- the sources of Perl 5.005_03 and Perl 5.6.1, in particular ext/Thread/Thread.c
(Damn. 5.8.0 is out just now - gotta take a look.)
- `man gcc`
- USENET newsgroups - several hints on how to compile Perl using a C++
compiler, what to do about -DBOOL=char, how to avoid the assert redefinition
warning etc.