You've fallen for the basic readdir trap (you didn't RTFM close enough)
one easy solution (read glob for caveats) my @files = glob "Configs/*";
Path::Tiny is very convenient
use Path::Tiny qw/ path /; for my $file ( path( "Configs/" )->children ){ my @config = $file->slurp_raw; ... }
In reply to Re: Trouble opening and reading file within loop (readdir)
by Anonymous Monk
in thread Trouble opening and reading file within loop
by H0tc@xe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |