Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: get variable from file to exist within perl code

by 1nickt (Canon)
on May 15, 2018 at 13:02 UTC ( [id://1214552]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214552]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-19 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found