in reply to Set of scripts using same variables

You can do it that way, as long as config.pl (let's not call it .txt) has valid Perl syntax. And note that it must return a true value - usualy this is done by placing a 1; on the last line of the file.

Having said that, there are a whole lot of modules on CPAN that deal with reading configuration files, like Config::Tiny, Config::General or even Config::IniFiles if you happen to like that format.

Replies are listed 'Best First'.
Re^2: Set of scripts using same variables
by bart (Canon) on Mar 15, 2004 at 18:11 UTC
      Ugh, please don't use XML for configuration files (except if you particularly enjoy torturing users (or yourself)).

      Makeshifts last the longest.