Data-Iterator
view release on metacpan or search on metacpan
Iterator_en.pod view on Meta::CPAN
=over 2
=item Data paths, format
You can pass data paths to element(), keys() and values() in different formats.
Standard is the Perl-like format for Hashes/Arrays:
my $path = "{'key1'}{'key2'}[2][1]";
If you are too busy to write all the brackets and braces, this will do ok:
my $path = 'key1.key2.2.1';
If you choose not to use brackets/braces, hash keys have to contain at least one non-numerical character. Otherwise they will be taken as an array index - and will cause a non-fatal error plus warning.
Additionally you can define an arbitrary delimiter to separate keys/indices - quite useful, if the . occurs within a hash key:
my $path = "#key1#key2#2#1";
Note:
( run in 0.745 second using v1.01-cache-2.11-cpan-87723dcf8b7 )