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/