Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: (2) Parsing external config file (variable interpolation in config file?)

by BoredByPolitics (Scribe)
on Jan 21, 2001 at 20:22 UTC ( #53338=note: print w/replies, xml ) Need Help??


in reply to Re: (2) Parsing external config file (variable interpolation in config file?)
in thread Parsing external config file

Yes!

You can define 4 types of config variable -

  • Boolean ("varname!")
  • Scalar ("varname=s")
  • Array ("varname=@")
  • Hash ("varname=%")
So your line enable pass $newen would be best handled as a hash, which would be called enable.

[section] has the effect of prefixing the varname with the section name, so login would become SetPass_login.

Multiple assignments to the same array or hash add further elements.

Both environment varibles, and those previously defined in the config file, can be expanded as values.

Take a look at the pods for AppConfig::State and AppConfig::File for more details.

Overall I'm very impressed with this module - it has definately saved me alot of time with the program I'm currently writing.

Pete

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2022-01-28 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (73 votes). Check out past polls.

    Notices?