Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Include external variables?

by LanX (Canon)
on Dec 03, 2012 at 00:51 UTC ( #1006772=note: print w/ replies, xml ) Need Help??


in reply to Include external variables?

> I am not using quite the correct terms to get results

it's called a config file.

There many approaches, including YAML or JSON to avoid code execution during inclusion.

If there are no security concerns, the simplistic approach is to use do or require to execute a perl-file defining global variables.

Cheers Rolf


Comment on Re: Include external variables?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2015-07-06 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls