use warnings; use strict; use Data::Dump; sub foo (@) { dd \@_ } my %hash = (x=>'Hello',y=>'World!'); foo(%hash); __END__ ["y", "World!", "x", "Hello"]