in reply to passing the reference of hash values array
use Data::Dumper; use strict; use warnings; my %arr = (1,2,3,4,5,6); print Dumper([values(%arr)]); [download]