Skip Menu |

This queue is for tickets about the Config-IniHash CPAN distribution.

Report information
The Basics
Id: 8256
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Config-IniHash

People
Owner: JENDA [...] cpan.org
Requestors: conmorbal [...] bigfoot.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.5
Fixed in: 2.8



Subject: Problem with 'heredoc' option
Hi there, I'm using the IniHash module to store several properties of a system. Some of those properties are multiline, so I'm using the "heredoc" option. Problem is that when I read an INI file with the following format: KEY=<<END Line1 Line2 END The module reads it properly, but if I modify the INI file and write it, it gets written as KEY=Line1 Line2 Next time I load the file, the module only reads "Line1" and if I rewrite I'm now even loosing Line2 I guess the issue here is that the WriteINI function should detect whether a key's value is multiline, and if so use the heredoc format. Regards, Constantino Morera
I just uploaded a fixed version. It uses <<*END* instead of <<END as that is a little more unlikely to appear in the values :-) Jenda
From: conmorbal [...] bigfoot.com
[JENDA - Fri Nov 5 09:11:58 2004]: Show quoted text
> I just uploaded a fixed version. It uses <<*END* instead of <<END as > that is a little more unlikely to appear in the values :-) > > Jenda
Thank you very much, this is a fast response!. Just a little suggestion, why don't you use '<<*END_KeyName*', where KeyName is the name of the Key. That'll avoid future problems with multiple multiline keys Thanks again, Constan
[guest - Fri Nov 5 09:42:06 2004]: Show quoted text
> [JENDA - Fri Nov 5 09:11:58 2004]: >
> > I just uploaded a fixed version. It uses <<*END* instead of <<END as > > that is a little more unlikely to appear in the values :-) > > > > Jenda
> > > Thank you very much, this is a fast response!. Just a little
suggestion, Show quoted text
> why don't you use '<<*END_KeyName*', where KeyName is the name of the > Key. That'll avoid future problems with multiple multiline keys > > Thanks again, > > Constan
Will do in a future version. Thanks for the suggestion. Jenda