Regarding Update 2:
The problem is that $db{$var1} is an array reference, not a hash reference. Perhaps you mean $db{$var1}[$indice]{counter} = '';?As a second note, so long as your hash keys contain only alphanumerics and underscores, Perl will automatically stringify the result - there's no need for quotes.
In reply to Re: Check if value exists into an array in a hash
by kennethk
in thread Check if value exists into an array in a hash
by Sombrerero_loco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |