in reply to Reading specific files
my @files = grep { (-f $_) and (/^R/) } readdir( DIR ); [download]
Keep in mind that readdir also returns subdirectories, hence the -f file check. You then need to open files individually.