I'm not sure if I understand what you mean. Do you want to gather those filenames into an array, say @results? Well, if so then you just have to substitute a print with a
(push @results, $_)
In reply to Re^4: Getting Filenames that contains a particular string recursively From a Directory
by blazar
in thread Getting Filenames that contains a particular string recursively From a Directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |