The information I'm searching through as a line that reads
"DOI: 02 NOV 06"
I have my program set up to searh for it using the grep function:
@thefile = infile;
@date = grep(/DOI: {9}/, @thefile);
but it retuns 0 results.
can anyone explain this to me?
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.