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!
In reply to Re: get variable from file to exist within perl code
by 1nickt
in thread get variable from file to exist within perl code
by mcaongusa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |