I am trying to write a perl program that will search for specific information in every file in the specified directory.
opendir(a, '.');
@t = readdir(a);
foreach $filename (@t) {
open (infile, '$filename');
while (infile) {
i am then using grep to search for the information.
when I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.