Skip Menu |

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

Report information
The Basics
Id: 44576
Status: rejected
Priority: 0/
Queue: Config-Std

People
Owner: Nobody in particular
Requestors: frank [...] digennaro.com
Cc:
AdminCc:

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



Subject: Cannot specify '=>' as a seperator
When trying to read a config file such as this: [directories] astetcdir => /etc/asterisk using: use Config::Std; use Config::Std { def_sep => '=\>' }; my $configfile = "asterisk.conf"; my $section = "directories"; read_config "$configfile" => my %config; my $astetcdir = $config{$section}{'astetcdir'}; print "astetcdir = $astetcdir\n"; the module reports the '>' sign as part of the file like this: astetcdir = > /etc/asterisk How do we fix that?
Subject: Re: [rt.cpan.org #44576] Cannot specify '=>' as a seperator
Date: Thu, 26 Mar 2009 21:40:11 +1100
To: bug-Config-Std [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> When trying to read a config file such as this: > > [directories] > astetcdir => /etc/asterisk
Sorry, but Config::Std does not read files that use key/value separators other than "=" or ":" Show quoted text
> use Config::Std { def_sep => '=\>' };
This does not change the separator to '=>'. The def_sep option can be used to specify whether "=" or ":" is used as a separator for new key/values added to the config file. It cannot be used to change the separator to anything else. Show quoted text
> How do we fix that?
Either change your config syntax to conform to the one Config::Std accepts, or else use another Config:: module (one that allows you to customize the separator). All the best, Damian
Subject: RE: [rt.cpan.org #44576] Cannot specify '=>' as a seperator
Date: Thu, 26 Mar 2009 10:16:13 -0400
To: <bug-Config-Std [...] rt.cpan.org>
From: "Frank DiGennaro" <frank [...] digennaro.com>
Disappointing, because this is a great module. I use it all the time. Thanks for the response. Regards; FSD Show quoted text
-----Original Message----- From: damian@conway.org via RT [mailto:bug-Config-Std@rt.cpan.org] Sent: Thursday, March 26, 2009 6:45 AM To: frank@digennaro.com Subject: Re: [rt.cpan.org #44576] Cannot specify '=>' as a seperator <URL: http://rt.cpan.org/Ticket/Display.html?id=44576 >
> When trying to read a config file such as this: > > [directories] > astetcdir => /etc/asterisk
Sorry, but Config::Std does not read files that use key/value separators other than "=" or ":"
> use Config::Std { def_sep => '=\>' };
This does not change the separator to '=>'. The def_sep option can be used to specify whether "=" or ":" is used as a separator for new key/values added to the config file. It cannot be used to change the separator to anything else.
> How do we fix that?
Either change your config syntax to conform to the one Config::Std accepts, or else use another Config:: module (one that allows you to customize the separator). All the best, Damian
Subject: Cannot specify '=>' as a seperator / WNF
WNF - Will Not Fix. This is a status change only. As Damian explained previously, the purpose of the module is to provide great support for a single Standard Config format.
Subject: RE: [rt.cpan.org #44576] Cannot specify '=>' as a seperator / WNF
Date: Sun, 7 Mar 2010 16:50:56 -0500
To: <bug-Config-Std [...] rt.cpan.org>
From: "Frank DiGennaro" <frank [...] digennaro.com>
This stuff is nearly a year old. Why write to me? Show quoted text
-----Original Message----- From: William D (Bill) Ricker via RT [mailto:bug-Config-Std@rt.cpan.org] Sent: Sunday, March 07, 2010 1:39 PM To: frank@digennaro.com Subject: [rt.cpan.org #44576] Cannot specify '=>' as a seperator / WNF <URL: https://rt.cpan.org/Ticket/Display.html?id=44576 > WNF - Will Not Fix. This is a status change only. As Damian explained previously, the purpose of the module is to provide great support for a single Standard Config format.
On Sun Mar 07 16:51:58 2010, cbbs70a wrote: Show quoted text
> This stuff is nearly a year old. Why write to me?
The request queue needed weeding as we transfer the module and I start cleaning up Doc, before fixing bugs. Your reply re-opened the bug, so I am closing it again. And thus you get another message. Sorry about that. If you want to ask questions or make suggestions without reopening bug, email me direct, not through RT. bill BRICKER@cpan.org bill.n1vux@gmail.com