| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Thu, 03 May 2012 23:24:02 +0200 | |
| changeset 8 | dd695a90efd6 |
| parent 7 | 989accf1fe23 (diff) |
| parent 5 | 2f224f085623 (current diff) |
| child 9 | 998910202673 |
--- a/CrashTest.pl Wed May 02 22:08:57 2012 +0200 +++ b/CrashTest.pl Thu May 03 23:24:02 2012 +0200 @@ -55,9 +55,12 @@ my $self = shift; my @files; - opendir my ($dh), $data_path; - while(readdir $dh) { - if($_ =~ /(.*)\.json$/) { + opendir my ($dh), $data_path or die $!; + my @allfiles = readdir $dh; + foreach(@allfiles) + { + if($_ =~ /(.*)\.json$/) + { my $filename = File::Spec->catfile($data_path, $_); push @files, { file => $filename,