in reply to Use of fetchall_hashref

$hash->{id} contains the value. If you want to dereference it as an array, wrap it into @{ ... }.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ