in reply to Re: Dynamic variables and strict
in thread Dynamic variables and strict

As dewey said, hashes are the way to go. As long as you remember to check that s/// matched.

Instead of

my ($var,$val) = /^\s*(.*?)\s*=\s*(.*)/; $conf{$var} = $val;
I'd use
if (/^\s*(.*?)\s*=\s*(.*)/) { $conf{$1} = $2; } else { die "slowly and painfully"; }