in reply to Sorting an array by another array
my @sortme = qw(a b c d); my @order = qw(d c e f); my %sortme; $sortme{$_}++ for @sortme; local $,=' '; print ((grep {$sortme{$_}-- } @order), grep { $sortme{$_} } @sortme); [download]
-- stefp