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.
none
$oHash = Hash->new();
Create a new empty Hash.
$bResult = $oHash->Get($cKey);
Returns the element with the Key cKey.
$cResult = $oHash->Set($cKey, $cValue);
Sets the value of the element with the Key cKey.
$cResult = $oHash->Delete($cKey);
Deletes the element at Key cKey. The value of the deleted element will be returned.
$iResult = $oHash->Count();
Returns the number of elements, the Hash contains.
none