Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Config::General issue with conf file

by poj (Abbot)
on Jan 03, 2018 at 17:40 UTC ( [id://1206615]=note: print w/replies, xml ) Need Help??


in reply to Config::General issue with conf file

Running this SSCCE I got the same error but removing the -UseApacheInclude=>1 fixed it. No idea why as docs suggest it should accept either format. HTH.

#!perl use strict; use Config::General; printf "Module Version %s\n",$Config::General::VERSION; my $conf = new Config::General(-ConfigFile => \*DATA, -InterPolateVars => 1, #-UseApacheInclude => 1, -IncludeRelative => 1 ); print $conf->save_string(); #news.conf #<news> #Some text #</news> __DATA__ <rightbar> baseurl = baseurl <status> includefile = $baseurl/incl/LeftBar/status.html </status> <<include news.conf>> </rightbar>
poj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found