Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Template:::Variables?

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

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 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:??;

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.

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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found