Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Welcome to the Monastery
 
PerlMonks  

Template:::Variables?

by Zecho (Hermit)
on Sep 01, 2001 at 05:04 UTC ( [id://109610]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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?

Replies are listed 'Best First'.
Re: Template:::Variables?
by japhy (Canon) on Sep 01, 2001 at 06: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:??;

Re: Template:::Variables?
by perrin (Chancellor) on Sep 01, 2001 at 18: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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://109610]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.