#hash slice example my %sets = ( 'set1' => { ... }, 'set2' => { ... }, 'set3' => { ... }, ... ); # When you want to build your list of arguments in a # specific order, make use of hash slices my @setargs = @sets{ qw/ set3 set1 set2 / }; # or alternatively, when you want to include everything # and don't care about the ordering my @setargs = @sets{ sort keys %sets };