in reply to perlxs documentation
Another, somewhat dated, way is to produce .ph files from the library's C headers and use the syscall function. Details in that perldoc.
I think that largely has been replaced by XS because with XS you can tune the library calls to have more perlish calling conventions.
After Compline,
Zaxo
In Section
Seekers of Perl Wisdom