Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Storing multiple blocks of text in the __DATA__ sectionby blindluke (Hermit) |
on Jan 03, 2015 at 11:59 UTC ( [id://1112050]=note: print w/replies, xml ) | Need Help?? |
I already use (and adore) Config::IniFiles, but it does not accept such simple syntax. It does, however accept multiline values for the params, but then the config would have to look like this:
In recent versions of Config::IniFiles, you can specify a default section, so the first line of the above example could be omitted by doing:
Still, this is the same heredoc syntax which I was trying to avoid in the first place. Fortunately, gnosti has found the Data::Section::Simple module that seems to do exactly what I was searching for. His recommendation, and your excellent first reply, add to the reasons why I love our Monastery. Thank you. - Luke
In Section
Seekers of Perl Wisdom
|
|