in reply to Class::DBI and compiling

Are you packaging this script or compiling it? Please explain what you did to create your compiled program.

Replies are listed 'Best First'.
Re^2: Class::DBI and compiling
by perldiverx (Beadle) on Jul 10, 2014 at 14:08 UTC
    I compiled it and have instructed the compiler to include all necessary modules. The problem is that require calls the module in at run-time, not compile time.

      Perl has no compiler.

      So, how did you compile the script, and how did you instruct the compiler to include all necessary modules?

        Not in the traditional sense, but there is most certainly a Perl to C transformation tool that compiles generated C against libperl, B::C (perlcc). Many people refer to this as the "Perl compiler."

      Which 'compiler'?

        ActiveState's PerlApp. I use Moose in the program as well, however I don't have that installed on the machine that's running the program either, and that works by instructing the compiler to include that module.