Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Class::DBI and compiling

by perldiverx (Beadle)
on Jul 10, 2014 at 13:49 UTC ( [id://1093057]=perlquestion: print w/replies, xml ) Need Help??

perldiverx has asked for the wisdom of the Perl Monks concerning the following question:

I've created a class using Class::DBI in a compiled program. The problem I'm having is that in order to use Class::DBI you need to have the line use base 'Class::DBI'; and this normally isn't a problem, except that use base is really calling require and the machine that I'm running this program on does not have Class::DBI installed on it. My question is how can I get this compiled program to work without installing Class::DBI?

Replies are listed 'Best First'.
Re: Class::DBI and compiling
by marto (Cardinal) on Jul 10, 2014 at 14:01 UTC

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

      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?

        Which 'compiler'?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1093057]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-18 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found