I don't think you want the braces there. Try:next unless {-d "$ldir/$name"};
next unless -d "$ldir/$name";
Also, I think you should change:
my @races = undef;
to:
my @races;
Tip #4 from the Basic debugging checklist: After your 1st while loop, add:
use Data::Dumper; print Dumper(\@races);
In reply to Re: file check loop
by toolic
in thread file check loop
by tevus_oriley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |