Name : perl-Tie-Multidim
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.6.1
| Date : 2024-07-03 19:17:55
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-Multidim-0.04-lp156.6.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : \"tie\"-like multidimensional data structures
|
Description :
This module implements multi-dimensional data structures on a hash. \'$foo->[2]{\'die\'}[4]\' gets \"mapped\" to \'$bar{\"2;die;4\"}\', where the \';\' is actually $SUBSEP ($;), and %bar is a hash you provide.
It is particularly useful in two, not disjoint, situations:
* 1. the data space (matrix, if you prefer) is sparsely populated;
* 2. the hash into which the data is mapped is tied.
This illustrates (1):
my %matrix; # hash to store the data in. local $; = \' \'; my $foo = new Tie::Multidim \\%matrix, \'AATTAATT\'; # array-of-arrays.
print $foo->[5432][9876];
This illustrates (2):
my %matrix; tie %matrix, \'Matrix\'; # some hashtie-able class. local $; = \";\"; # gets remembered by the object. my $foo = new Tie::Multidim \\%matrix, \'%AATT%\';
$foo->{\'human\'}[666]{\'beast\'} = \"value\";
sub Matrix::STORE { my( $self, $index, $value ) = AATT_; my( $x, $y, $z ) = split $;, $index; }
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |