http://www.perlmonks.org?node_id=303011


in reply to Re: Re: CGI file writing
in thread CGI file writing

Hi mcogan1966,
How I normally get around this is either create a module .pm which can be included in any dir in @INC and called with use Foo::Bar;. Or a library .pl called with require /path/to/baz.pl;.

You would then make filenames and paths variables which are read in from the file making it portable throughout many systems without having to touch the script itself.