WWWdb::Hash - Hashes for WWWdb
use WWWdb::Hash;
$oHash = Hash->new();
$cResult = $oHash->Get($cKey);
$cResult = $oHash->Set($cKey, $cValue);
$cResult = $oHash->Delete($cKey);
$iResult = $oHash->Count();
Perl is the language for Hash-manipulation. Neverthless I wished some
funktionality for imbedded class-elements in Hash-form. That was the main
reason, for developing this class.
- new
-
$oHash = Hash->new();
Create a new empty Hash.
- Get
-
$bResult = $oHash->Get($cKey);
Returns the element with the Key cKey.
- Set
-
$cResult = $oHash->Set($cKey, $cValue);
Sets the value of the element with the Key cKey.
- Delete
-
$cResult = $oHash->Delete($cKey);
Deletes the element at Key cKey. The value of the
deleted element will be returned.
- Count
-
$iResult = $oHash->Count();
Returns the number of elements, the Hash contains.