| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Thu, 03 May 2012 13:17:05 +0200 | |
| changeset 6 | 8dfc7e5dbdc7 |
| parent 4 | 7ffe7b48b8de |
| child 7 | 989accf1fe23 |
| CrashTest.pl | file | annotate | diff | comparison | revisions |
--- a/CrashTest.pl Wed May 02 21:46:54 2012 +0200 +++ b/CrashTest.pl Thu May 03 13:17:05 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,