Zecho has asked for the wisdom of the Perl Monks concerning the following question:
The project I am cutting my molars on is meant to be template based, with it's own setup script (for distribution to people who dont know perl or cgi). Here's my dilemma. The first thing I want to happen when the project is installed is for a config page to come up, I would like for it to check environment variables and attempt to pre-fill as much of the config info as possible for installation on remote servers etc. where this info might not be readily available. How do I get a perl script to locate perl? hehe I know that this isn't possible, so what avenues are left?
Re: Template:::Variables?
by japhy (Canon) on Sep 01, 2001 at 10:09 UTC
|
You can figure out a lot of stuff:
- the %ENV hash holds your current environment
- the standard Config module holds Perl configuration information
Those two alone carry a wealth of information.
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??; | [reply] |
Re: Template:::Variables?
by perrin (Chancellor) on Sep 01, 2001 at 22:23 UTC
|
This is an oddly titled question. It sounds like you're asking how to make a CGI script run without knowing the location of Perl. I think the shell stuff in eg/nih in the standard Perl distribution might help you. | [reply] |
|