in reply to get variable from file to exist within perl code

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.
  • Comment on Re: get variable from file to exist within perl code