For accessing a library, I'd go with FFI::Platypus
In reply to Re^3: XS, raspberry pi, and a hundred bucks by ikegami in thread XS, raspberry pi, and a hundred bucks by Aldebaran