Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cgi-Bin!!!!!!!!!!!!!!!!!!!!

Status
Not open for further replies.

michelebulloni

Programmer
Mar 4, 2004
13
IT
Hello to All,
I am using of the variable ones to inside of some files cgi, asked myself if it is possible to make includes of a files that it contains the setting of the variable ones.

Thanks!!!!!!!!!
 
michelle,
If you're talking about sharing configuration variables amongst a suite of scripts then require is what you're looking for

Code:
require setup.pl
setup.pl
Code:
#!/usr/bin/perl
$const_pi="3.14...";
$const_c="really fast";

HTH
--Paul
 
ok...but in my cgi i use...
samples:
WEB=`cat ../Config/config.file|grep web|awk '{print $2}'`

and if i use your solution for my forms html, i do not using require setup.pl

Sorry for my English!!

_______________________________________
Michele Bulloni
email : info@michelebulloni.it
url :
 
Michelle,

There's a module called Storable on search.cpan.org, whioch would allow you to share data by writing it to disk between processes.

Is this what you're after?

HTH
--Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top