develooper Front page | perl.beginners | Postings from February 2002

Include file

Thread Next
From:
gross, cedric
Date:
February 1, 2002 08:21
Subject:
Include file
Message ID:
EDAFADBE839DA74C9CF7AB8DA188BA1A214A51@serveurhp.hayward.fr
I have a set of program to do which is using always same var.
 
So I would like to defined a small file where I defined my var (like
$database="toto" $host="localhost" etc..) and then include it in my
other program, but
How to do that ?
 
I try "use" but it's seems that is for complete module.
"require" seems to be for version behavior
and include seems not be supported...
 
I browse doc but I found nothing..
 
 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About