The stupid question is the question not asked | |
PerlMonks |
Re: get variable from file to exist within perl codeby 1nickt (Canon) |
on May 15, 2018 at 13:02 UTC ( [id://1214552]=note: print w/replies, xml ) | Need Help?? |
Hi, there's a better way. You might like Config::Tiny for example. Here is the almost 20-year old classic explanation of why it's a bad idea to do what you are trying to do: Why it's stupid to 'use a variable as a variable name'. Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|