in reply to Check if value exists into an array in a hash

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.

Replies are listed 'Best First'.
Re^2: Check if value exists into an array in a hash
by Sombrerero_loco (Beadle) on Feb 12, 2009 at 12:25 UTC
    thanks for the quotes trick!