use strict; use warnings; my @DataA = split /\n/, <[0] cmp $b->[0]} @merged;