I created a module in placed in a directory called Ops
that is in the same folder as a script from which I'm calling it.
Whenever I execute the script from within the folder that it is located in, all works fine.
In other words I type ./scriptname.cgi at the command line.
However, if for example, I'm in the /root directory and I call
/usr/local/cgi-bin/scriptname.cgi it complains that it can't find the module Ops::Module.pm.
Why is that? I have the folder "Ops" located in the same directory as scriptname.cgi. Why would work when I'm calling it from that directory,but not from a remote directory?
Thoughts? Thanks.