[Gllug] bored programmer needs help
Dave van Zijl
dave10810 at yahoo.co.uk
Tue Dec 16 20:55:12 UTC 2003
> 1. is there any way in perl i can call functions that are in a C library
somwhere?
> (like native methods in java) without all the bother of re-compiling perl
etc.
Sure, we use SWIG (http://www.swig.org/) which basically creates a Perl
wrapper (.pm) around a .so and you specify which methods to make available
to the .pm. It has a few problems (doesn't handle certain overloaded methods
very well - eg when the only difference is the data type of parameter
expected) but is quite decent
> 2. anyone reccomend a C book to use while learning.
"The C Programming Language" 2nd Ed by Brian Kernighan and Dennis Ritchie is
an excellent place to start I think :-)
Dave
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list