Skip Menu |
 

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

Report information
The Basics
Id: 4587
Status: resolved
Priority: 0/
Queue: Config-IniFiles

People
Owner: Nobody in particular
Requestors: kocour_easy [...] post.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug in comments
Download (untitled) / with headers
text/plain 287b
Hi, i have this ini file: ------------------------- [Main] City=Havirov # This is city [Other] # This is other section Hi=ahoj ------------------------- When i want read type 'Hi' in section 'Other' it was report error. There is error in comment above section name.
Download (untitled) / with headers
text/plain 501b
This is not a bug. Your line [Other] # This is other section is not valid, because it does not match one of the allowed patterns. Comment may only exist on a line by themselves. Whitespace preceeding the comment is allowed. The format of the INI file is described in the POD. The error is by design. This allows RHS values for parameters to contain any characters (including comment characters). e.g. [Section] Parameter=My value contains a semicolon; but it's still valid
Date: Fri, 5 Dec 2003 15:03:43 -0500 (EST)
From: Rich Bowen <rbowen [...] rcbowen.com>
To: Guest via RT <bug-Config-IniFiles [...] rt.cpan.org>
Subject: Re: [cpan #4587] Bug in comments
RT-Send-Cc:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 5 Dec 2003, Guest via RT wrote: Show quoted text
> > This message about Config-IniFiles was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=4587 > > > Hi, > i have this ini file: > ------------------------- > [Main] > City=Havirov # This is city > > [Other] # This is other section > Hi=ahoj > ------------------------- > When i want read type 'Hi' in section 'Other' it was report error. > There is error in comment above section name.
Yes, this is documented. You can't have a comment on the same line as a configuration line. Comments must start their own line. - -- Oh I have slipped the surly bonds of earth And danced the sky on laughter-silvered wings --High Flight (John Gillespie Magee) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/0OSjXP03+sx4yJMRAjEsAKDf7OIv1VGyIR72KS4222W4Vb2beQCcCOCI VBuGqKul76K566a02oI4z1c= =jyPr -----END PGP SIGNATURE-----


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.