Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Escapes and comments in Config::General

by John M. Dlugosz (Monsignor)
on Mar 22, 2011 at 14:13 UTC ( [id://894812]=note: print w/replies, xml ) Need Help??


in reply to Re: Escapes and comments in Config::General
in thread Escapes and comments in Config::General

My code that reads the file:
method fetch { if (!defined($data) || (my $age= -M $conffilename)) { # must (re)load the file my $conf= new Config::General:: (-ConfigFile => $conffilename, -UT +F8 => 1); my %result= $conf->getall; $data= \%result; $fileage= $age; } return $data; }
This is a Catalyst "Model", and the resulting hash winds up in a stash passed to Template::Alloy.
<p>[% sp.priceline %]</p>
etc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found