in reply to Re^4: searching two pattern sequentially from one file
in thread searching two pattern sequentially from one file
Not very much of that code is necessary. Your later code doesn't need all that readdir stuff and the stuff reading the config file.
Note that you are printing out the current line in the line:
print "into the second loop $readlineqo\n";
So, if you are seeing the output into the second loop .., then your line consists of two dots. Maybe that is the case, but maybe you are reading the wrong file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: searching two pattern sequentially from one file
by mrityunjaynath (Acolyte) on May 16, 2016 at 08:46 UTC | |
by hippo (Archbishop) on May 16, 2016 at 09:18 UTC | |
by Corion (Patriarch) on May 16, 2016 at 09:04 UTC |