Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: get variable from file to exist within perl code

by afoken (Abbot)
on May 15, 2018 at 20:30 UTC ( #1214582=note: print w/replies, xml ) Need Help??


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

In general, don't use eval or similar (evalbytes, do, require, use) for configuration data. See also: Re^2: conf file in Perl syntax, Re: Accessing variables in an external hash without eval

Alexander


Update:

The doc shortcut [doc://evalbytes] seems to be broken at perlmonks, linking to http://perldoc.perl.org/evalbytes.html instead of the correct http://perldoc.perl.org/functions/evalbytes.html.

Thanks to AnomalousMonk.

Second update:

Fixed!

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214582]
help
Chatterbox?
and the universe expands...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-07-22 01:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (451 votes). Check out past polls.

    Notices?