in reply to Re^2: Setting a Variable from filename
in thread Setting a Variable from filename

Well, you could grep your values into the same array if you wished:
@files = grep { /_CF_/ } @files;
Now, @files will contain only the file(s) matching the regex.

But it is probably clearer (and easier to debug if you need) to grep the matching values into a new array and leave the original one untouched.