in reply to Re: Passing Hashes
in thread Passing Hashes

You are confused because of the difference between hash references and hashes.

foreach (keys %$dat) { print "$_ = $dat->{$_}<br>\n"; }

As for suggestions: read perldoc perldata, perldoc perlref, perldoc perlsec, use CGI and please use strict in all your modules.