Skip Menu |

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

Report information
The Basics
Id: 62930
Status: resolved
Priority: 0/
Queue: Config-Any

People
Owner: Nobody in particular
Requestors: lembark [...] wrkhors.com
Cc:
AdminCc:

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



CC: lembark [...] wrkhors.com
Subject: Config-Any-0.20 does not handle ref-to-constant in Dumper format
Date: Thu, 11 Nov 2010 17:19:25 -0500
To: bug-config-any [...] rt.cpan.org
From: Steven Lembark <lembark [...] wrkhors.com>
Passing in a path to a file with: { bar => \'blort', foo => \'bletch' } leaves me with: DB<11> x $a = Config::Any->load_files( { files => [ $source ], use_ext => '' } ) 0 ARRAY(0x8de5c40) 0 HASH(0x8de5450) '/tmp/01-Configure-dumpfile-PB4H' => HASH(0x8de2b40) 'bar => \\\'blort\'' => undef 'foo => \\\'bletch\'' => undef The hash keys are 'bar => \\\'blort\'' 'foo => \\\'bletch\'' instead of 'bar' & 'foo'. DB<12> x $a = qx( cat $source ); 0 '{ bar => \\\'blort\', foo => \\\'bletch\' } ' DB<13> x $b = eval "$a" 0 HASH(0x840e918) 'bar' => SCALAR(0x840e8e8) -> 'blort' 'foo' => SCALAR(0x8831018) -> 'bletch' DB<4> x keys %$b 0 'bar' 1 'foo' Or do I need to use file extensions to handle this properly (i.e. the ref-to-const is confusing file type processing)? The POD does not give any standard extension for Dumper output. thanx -- Steven Lembark 3646 Flora Pl Workhorse Computing St Louis, MO 63110 lembark@wrkhors.com +1 888 359 3508
I would suspect this is Config::General being too ... general. In any event, as this is perl code, you should be able to use the .pl or .perl extension and turn use_ext back on. Please give that a shot and let me know how it goes.
Although I've not heard back from you, I'm pretty sure this has been resolved. If not, please re-open the ticket.
CC: lembark [...] wrkhors.com
Subject: Re: [rt.cpan.org #62930] Config-Any-0.20 does not handle ref-to-constant in Dumper format
Date: Fri, 1 Apr 2011 14:24:21 -0500
To: bug-Config-Any [...] rt.cpan.org
From: Steven Lembark <lembark [...] wrkhors.com>
On Mon, 24 Jan 2011 08:40:15 -0500 "Brian Cassidy via RT" <bug-Config-Any@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=62930 > > > Although I've not heard back from you, I'm pretty sure this has been > resolved. If not, please re-open the ticket.
Ack... Request must've gotten swallowed by SA. Sorry about that. Thanks for the fix. -- Steven Lembark 3646 Flora Pl Workhorse Computing St Louis, MO 63110 lembark@wrkhors.com +1 888 359 3508