for sessions there's CGI::Session or Storable, depending on the abstraction level you want.
I do use Starable but simply for storring compactly the hash in the file.
Do you mean I can use use Storable to store my hash in memory between sessions? Give me please just a hint how.
What do you mean by "abstraction level you want".