> -----Message d'origine----- > De : Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED] > Envoyé : mardi 2 novembre 2004 09:44 > À : Gavin Henry > Cc : perl beginners > Objet : Re: Sourcing Configuration files > > On Tue, 2004-11-02 at 13:41, Gavin Henry wrote: > > Hi all, > > > > What is the easiest way to move variable declarations out into a file in > > /etc/ and requiring a perl program to read them in at startup. If they > are > > not there, then the program must complain. > > > > Thanks. > > > > You cannot source shell style in perl. You can write a perl file and > "require" it.
Umh ... have a look to Shell::Source module from CPAN. http://search.cpan.org/~pjcj/Shell-Source-0.01/Source.pm José. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>