sending scalar and hash to function [SUMMARY]

[email protected] Mon, 27 Jun 2011 11:44:54 -0700
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
Found the solution (my apologies).

I am receiving both an scalar, the second one as a reference, then it  
must be assigned to an other var.

   sub dosomething
     {
     ($myopt,$myparams) = @_;
     %myparams = $myparams;
     print "opt = $myopt\n";
     while( my ($k, $v) = each %myparams )
       { print "$k = $v \n"; }
     }