Package: perl-Data-Hierarchy (0.34-bp156.3.1)
Handle data in a hierarchical structure
the Data::Hierarchy manpage provides a simple interface for manipulating inheritable data attached to a hierarchical environment (like a filesystem). One use of the Data::Hierarchy manpage is to allow an application to annotate paths in a real filesystem in a single compact data structure. However, the hierarchy does not actually need to correspond to an actual filesystem. Paths in a hierarchy are referred to in a Unix-like syntax; '"/"' is the root "directory". (You can specify a different separator character than the slash when you construct a Data::Hierarchy object.) With the exception of the root path, paths should never contain trailing slashes. You can associate properties, which are arbitrary name/value pairs, with any path. (Properties cannot contain the undefined value.) By default, properties are inherited by child paths: thus, if you store some data at '/some/path': $tree->store('/some/path', {color => 'red'}); you can fetch it again at a '/some/path/below/that': print $tree->get('/some/path/below/that')->{'color'}; On the other hand, properties whose names begin with dots are uninherited, or "sticky": $tree->store('/some/path', {'.color' => 'blue'}); print $tree->get('/some/path')->{'.color'}; # prints blue print $tree->get('/some/path/below/that')->{'.color'}; # undefined Note that you do not need to (and in fact, cannot) explicitly add "files" or "directories" to the hierarchy; you simply add and delete properties to paths.
Package information
- Homepage
- [http://search.cpan.org/dist/Data-Hierarchy/]
- License
- Artistic-1.0 or GPL-1.0+
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-Data-Hierarchy]
- Software project
- [perl-Data-Hierarchy]
Versions and downloads for perl-Data-Hierarchy
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.34-bp156.3.1leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 20 KiB | 22 KiB | list of files | perl-Data-Hierarchy-0.34-bp156.3.1.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-Data-Hierarchy
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
dep: perl(Test::Exception)
Package not available
Package file paths (7)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.26.1/Data
- /usr/lib/perl5/vendor_perl/5.26.1/Data/Hierarchy.pm
- /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
- /usr/share/doc/packages/perl-Data-Hierarchy
- /usr/share/doc/packages/perl-Data-Hierarchy/CHANGES
- /usr/share/doc/packages/perl-Data-Hierarchy/README
- /usr/share/man/man3/Data::Hierarchy.3pm.gz
Field source: openSUSE Leap 15.6 OSS
