Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Escapes and comments in Config::General

by young_david (Friar)
on Mar 22, 2011 at 14:05 UTC ( [id://894809]=note: print w/replies, xml ) Need Help??


in reply to Escapes and comments in Config::General

Replies are listed 'Best First'.
Re^2: Escapes and comments in Config::General
by John M. Dlugosz (Monsignor) on Mar 22, 2011 at 14:13 UTC
    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://894809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-28 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found