Name : perl-Hash-AutoHash
| |
Version : 1.170.0
| Vendor : Mageia_Org
|
Release : 9.mga8
| Date : 2020-02-12 06:11:00
|
Group : Development/Perl
| Source RPM : perl-Hash-AutoHash-1.170.0-9.mga8.src.rpm
|
Size : 0.08 MB
| |
Packager : umeabot < umeabot>
| |
Summary : Object-oriented access to real and tied hashes
|
Description :
This is yet another module that lets you access or change the elements of a hash using methods with the same name as the element\'s key. It follows in the footsteps of the Hash::AsObject manpage, the Hash::Inflator manpage, the Data::OpenStruct::Deep manpage, the Object::AutoAccessor manpage, and probably others. The main difference between this module and its forebears is that it supports tied hashes, in addition to regular hashes. This allows a modular division of labor: this class is generic and treats all hashes the same; any special semantics come from the tied hash.
The class has a \'new\' method but also supplies several functions for constructing new Hash::AutoHash objects. Except in the simplest cases, we recommend using the constructor functions rather than \'new\'.
The constructor functions shown in the SYNOPSIS are all you need for typical uses. autohash_hash creates a new \'real\' (ie, not tied) Hash::AutoHash object; autohash_tie creates a new tied Hash::AutoHash object. Once the objects are constructed, the class treats them the same way.
|
RPM found in directory: /vol/rzm3/linux-mageia/distrib/8/i586/media/core/release |