Instead of doing the work yourself, use a module:
use File::Glob 'bsd_glob'; my @files= bsd_glob $dir; print "$_\n" for @files;
In reply to Re: Loading an array with file names
by Corion
in thread Loading an array with file names
by insta.gator
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |