Name : perl-Data-Leaf-Walker
| |
Version : 0.21
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 6.66
| Date : 2024-08-05 19:58:02
|
Group : Development/Libraries/Perl
| Source RPM : perl-Data-Leaf-Walker-0.21-6.66.src.rpm
|
Size : 0.02 MB
| |
Packager : (none)
| |
Summary : Walk the leaves of arbitrarily deep nested data structures
|
Description :
\'Data::Leaf::Walker\' provides simplified access to nested data structures. It operates on key paths in place of keys. A key path is a list of HASH and ARRAY indexes which define a path through your data structure. For example, in the following data structure, the value corresponding to key path \'[ 0, \'foo\' ]\' is \'bar\':
$aoh = [ { foo => \'bar\' } ];
You can get and set that value like so:
$walker = Data::Leaf::Walker->new( $aoh ); ## create the walker $bar = $walker->fetch( [ 0, \'foo\' ] ); ## get the value \'bar\' $walker->store( [ 0, \'foo\'], \'baz\' ); ## change value to \'baz\'
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/openSUSE_Tumbleweed/noarch |