http://qs1969.pair.com?node_id=177896

c has asked for the wisdom of the Perl Monks concerning the following question:

I'd like to call in variables from an external file, however with use strict; in place, I get the gong saying that the variables need to be declared. Is there an easy way to do this? I have a script that is getting to have a large number of user-definable variables that I would like to read from an external file, but

#!/usr/bin/perl -w use strict; require "script_options.txt";

just doesnt seem to be the way to go. I'm not up for digging in and reading from an xml config file, I just need something simple that lets a user define something like my $mtu = "1500"; in a seperate file.

thanks! -c