Skip Menu |

This queue is for tickets about the Data-Traverse CPAN distribution.

Report information
The Basics
Id: 88395
Status: new
Priority: 0/
Queue: Data-Traverse

Owner: Nobody in particular
Requestors: kes-kes [...]

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

X-RT-Interface: Web
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.16-4694-1378240359-1498.0-0-0 [...]>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 587
Download (untitled) / with headers
text/plain 587b
use SRS::Utils; use Data::Traverse qw(traverse); my $d = [ { arr => [ 1,2 ], hash => { a => 'b', c => { d => 'e' } } } ]; traverse { pp $_ , $a, $b } $d; Name "main::a" used only once: possible typo at ./ line 12. Name "main::b" used only once: possible typo at ./ line 12. ("HASH", "d", "e") ("HASH", "a", "b") ("ARRAY", 1, undef) ("ARRAY", 2, undef) while traversion do not see arr, hash and c and I have not ability to rename hashkeys it will be better to save data to one variable $a and keyname for $b, so printing data I no need to switch between variables

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

Please report any issues with to