carthoris5
Technical User
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 print it out, all it shows is the commas I used to seperate the variables in the print statement.
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 print it out, all it shows is the commas I used to seperate the variables in the print statement.