in reply to Re: Substituting tokens into configuration values
in thread Substituting tokens into configuration values

You can also use do to accomplish the same thing. Here is a simple example:

#!/usr/bin/perl use strict; use warnings; use Data::Dumper; our $config; do '/tmp/config.pl'; print Dumper(\$config),"\n";

and /tmp/config.pl looks like:

$config = [ option1 => 'one', option2 => 'two', option3 => 'three' ];

It might also be advantagous to setup a signal handler (or whatever means/mechanism available as a win service) that will reread the config.


cp
----
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."