Gossamer Forum
Home : General : Perl Programming :

How to simulate execution of a perl module?

Quote Reply
How to simulate execution of a perl module?
Does anybody know how to step through a LSQL perl module file (.pm) to verify that the code is compatabile with mod_perl loading it into memory without having to restart mod_perl to check it?
Quote Reply
Re: [scorpioncapital] How to simulate execution of a perl module? In reply to
Try this from the command line:
Code:
perl -cw -I/path/to/additional/libraries PerlModule.pm

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [scorpioncapital] How to simulate execution of a perl module? In reply to
Or better:

apachectl configtest

will load your mod_perl startup file and test for any compile errors. If you don't use apachectl, you can try:

httpd -t

which does a config file test.

Cheers,

Alex
--
Gossamer Threads Inc.