Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Regex with two strings from filesby Marshall (Canon) |
on Mar 01, 2017 at 07:05 UTC ( [id://1183248]=note: print w/replies, xml ) | Need Help?? |
I am very confused by your question. It is not at all clear what you are trying to do? Your code has glaring errors, e.g. Never re-read the same file (in your code, your file handle <$fh2> and the seek) more than once without an exceptional reason. You have many loops within loops in this section of code the purpose of which are not at all clear. You do not explain what parse1 or parse2 are intended to do. Or why they even should be separate files? It looks like to me that you should use the files, parse1,2 to build a regex that is then executed over a number of directories and/or files? I do not see any examples of what should "match" and what should "not match" with a simple example.
In Section
Seekers of Perl Wisdom
|
|