Skip Menu |

This queue is for tickets about the Hash-RenameKey CPAN distribution.

Report information
The Basics
Id: 103008
Status: new
Priority: 0/
Queue: Hash-RenameKey

People
Owner: Nobody in particular
Requestors: vikas.nv [...] gmail.com
Cc:
AdminCc:

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



Subject: bug and fix
Date: Mon, 23 Mar 2015 00:44:19 +0530
To: bug-Hash-RenameKey [...] rt.cpan.org
From: Vikas NV <vikas.nv [...] gmail.com>
Hi, I found a bug where my data structure was something like this: $ds = { 'a.x' => { 'c.v' => [ 'anc', 'ccc', .. ], .... }, .... }; I tried to rename where i wanted to replace all dots in keys to ':d:' But i used to get an error saying cannot use 'anc' as hash ref The fix i put in the code is like this (highlighted code is the fix): [image: Inline image 1] Thanks, -- Vikas N V mobile: 8886100338 http://techdiary-viki.blogspot.com/
Download image.png
image/png 11k
image.png