There's more than one way to do things | |
PerlMonks |
Re^2: Testing dll/dso using Perlby Excalibor (Pilgrim) |
on Mar 23, 2005 at 09:35 UTC ( [id://441719]=note: print w/replies, xml ) | Need Help?? |
Another possibility is having a look at SWIG http://www.swig.org/ which allows you to easily create interfaces from C and C++ to many languages, including, of course, Perl. It's easy to use, it has an IDL to describe your code, and creates a .so/.dll you can use from your Perl program as a normal Perl package, unless your code is so diabolical it's really hard to easily map into Perl. In that case, Inline and perlxs are your friends (sort of, anyway). I guess those are the candidates, as well, if you are trying to test performance of some sort (although I fail now why would you test that from Perl, or which value would it have unless the production environment was similarly through Perl, but I digress...) Good luck! --
In Section
Seekers of Perl Wisdom
|
|