That's exactly what's wrong
my %user=$_;
should be
my %user=%$_;
because $_ contains a *reference* to the nested hash. The fact that a scalar is being assigned to a hash is a sure sign something is wonky.
In reply to Re^2: hash parameter question
by ikegami
in thread hash parameter question
by PerlHeathen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |