in reply to Hashes in Perl Modules

You have:
$SCALAR = %HASH;
You want:
$SCALAR = \%HASH;
You have:
return $HASHREF;
You want:
return %$HASHREF;

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.