P is for Practical | |
PerlMonks |
Re^3: perl c++ perlembed questionby Joost (Canon) |
on Jun 27, 2009 at 18:38 UTC ( [id://775357]=note: print w/replies, xml ) | Need Help?? |
It doesn't matter which code embeds what. The only real difference between embedding perl in C and C in perl is that if you embed C code in perl you can use the standard perl interpreter to start everything, and otherwise you'll have to "manually" start the perl interpreter using a (short) bootstrap sequence in C.
Once you've done that, you can call into C and C++ functions from perl and vice versa regardless of how the startup procedure was executed.
In Section
Seekers of Perl Wisdom
|
|