I am developing a simple tool that will be used across a variety of platforms (mostly Solaris, Linux and HP-UX). The tool relies on the module Proc::ProcessTable however I would like to avoid having to build/install the module across all the systems it will be used on.
Rather, I would like to 'embed' the Proc::ProcessTable code inside my tool. The result I am seeking is to have a single file that will work in all systems, without having to install the module separately.
Is this possible at all? Embedding a Perl-only module would be trivial, but this module compiles some OS-specific C code. Assuming I could compile that code on each of the OS I need, how would I go about including that pre-compiled C code inside my Perl script in order to make the embedded module work?