use strict; my %storePaths; foreach my $graph (@ARGV) { open GRAPH, "<$graph" or die; while () { chomp; my $storePath = "$_"; $storePaths{$storePath} = 1; my $deriver = ; chomp $deriver; my $count = ; chomp $count; for (my $i = 0; $i < $count; ++$i) { my $ref = ; } } close GRAPH; } foreach my $storePath (sort (keys %storePaths)) { print "$storePath\n"; }