Wiggins d Anconia said: >> Ramprasad A Padmanabhan said: >> > 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. >> >> Oh, I thought you could. Not even a plain text one. Oh, well. >> > > <snip> > > You can, use 'do'. Though even in the docs for it, the suggestion of > using 'use' or 'require' comes up. This is also covered in the Perl > Cookbook, see recipe 8.16 (2nd edition). > > perldoc -f do > > Personally I prefer using AppConfig, or XML::Simple for configuration > purposes.
I will try XML::Simple. Thanks Wiggins. > > http://danconia.org > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- Just getting into the best language ever... Fancy a [EMAIL PROTECTED] Just ask!!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>