Help for this page
while( my $file = <graph_set_*.out> ) { next unless $file =~ m[graph_set_[123]?[0-9].out]; ... #Do stuff close IN; }
for $file (sort{ $a=~/(\d+)/ <=> $b=~/(\d+)/ } <graph_set_*.out> ) { open... .... close... }