WWWdb::Hash - Hashes for WWWdb

- NAME
- SYNOPSIS
- DESCRIPTION
- The Hash class
  - Note
  - Class Methods
  - Class Attributes

# NAME

WWWdb::Hash - Hashes for WWWdb

# SYNOPSIS

     use WWWdb::Hash;

     $oHash     = Hash->new();

     $cResult   = $oHash->Get($cKey);

     $cResult   = $oHash->Set($cKey, $cValue);

     $cResult   = $oHash->Delete($cKey);

     $iResult   = $oHash->Count();

# DESCRIPTION

# The Hash class

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.

## Note

none

## Class Methods

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.

## Class Attributes

none