my @files = grep { (-f $_) and (/^R/) } readdir( DIR );
Keep in mind that readdir also returns subdirectories, hence the -f file check. You then need to open files individually.
In reply to Re: Reading specific files
by toolic
in thread Reading specific files
by molson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |