In the first code snippit, your function will receive a hash reference,
which is a scalar. If you get rid of the curly braces, it will work. Better
still would be
my ($myopt, $myparams) =@_;
...and...
each %$myparams
--
Shaun Fryer
1-647-723-2729
On Jun 27, 2011 2:33 PM, wrote:
> I am tryi
On Mon, Jun 27, 2011 at 2:44 PM, wrote:
>
> 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.
>
> No. It does not have to be assigned to another var. Instead you should
dereference the reference.
su