Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Escapes and comments in Config::General

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


in reply to Escapes and comments in Config::General

  • Comment on Re: 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? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2023-01-31 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?