How to Install and Uninstall perl-Data-Hierarchy Package on openSuSE Tumbleweed

Last updated: April 26,2024

1. Install "perl-Data-Hierarchy" package

Please follow the step by step instructions below to install perl-Data-Hierarchy on openSuSE Tumbleweed

$ sudo zypper refresh $ sudo zypper install perl-Data-Hierarchy

2. Uninstall "perl-Data-Hierarchy" package

This is a short guide on how to uninstall perl-Data-Hierarchy on openSuSE Tumbleweed:

$ sudo zypper remove perl-Data-Hierarchy

3. Information about the perl-Data-Hierarchy package on openSuSE Tumbleweed

Information for package perl-Data-Hierarchy:
--------------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : perl-Data-Hierarchy
Version : 0.34-131.29
Arch : noarch
Vendor : openSUSE
Installed Size : 21.6 KiB
Installed : No
Status : not installed
Source package : perl-Data-Hierarchy-0.34-131.29.src
Upstream URL : http://search.cpan.org/dist/Data-Hierarchy/
Summary : Handle data in a hierarchical structure
Description :
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.