In a directory containing many files, if a particular regexp (or format) was found in file, I'd like to get that filename
If the word "rama" is found in file called ramayana, print the filename "ramayana"
if a file contains a particular format something like "
(TEXT - NUMBERS)" in a file name called table, print that filename table in shell that was pretty easy,something like
grep "mytext" * | cut -d':' -f1 | uniq
but how to do it in perl
Suggestions on helpful CPAN modules are appreciated, too.