I am trying to get a script to use a module that is in a parallel directory to the script - ie. I'm in public_html/test, and the module is in public_html/modules.
I thought the 'use lib' command would work for this, like the following
use lib /home3/mysite/public_html/modules - but I get an illegal division by zero error when I try this!?!
I also tried all the obvious configurations eg. use ../modules/mymodule(mysub) but I can't get it to work - only for modules in the directory I'm in, or forward from where I an.
Surely this must be possible?
Thanks,
Matt.
I thought the 'use lib' command would work for this, like the following
use lib /home3/mysite/public_html/modules - but I get an illegal division by zero error when I try this!?!
I also tried all the obvious configurations eg. use ../modules/mymodule(mysub) but I can't get it to work - only for modules in the directory I'm in, or forward from where I an.
Surely this must be possible?
Thanks,
Matt.