in reply to making a hash from cgi parameters

You're probably looking for Vars:
use CGI ':cgi-lib'; my $cgi = new CGI; my $hash_ref = $cgi->Vars; print $hash_ref->{'name'};
Will work with GETs, POSTs, and from command line.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain