AGI Perl - why can't I use modules?

I’m trying to set up a very simple AGI script that would
use my .pm module (which is located in the same folder).

Script and module seem to be OK however the call gets declined
every time script is called. As soon as I comment out the use of module my script is working just fine.

I have no idea why is this happening. If you have a clue please share as I need to use some modules.

If the permissions are correct. It probably cannot find the library. Try adding something like this before your use statement for your module:

[quote=“davevg”]

thank you very much, this solved my problem

EOT