![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: how to comment the lines if found a matchby moritz (Cardinal) |
on Dec 05, 2008 at 18:53 UTC ( #728346=note: print w/replies, xml ) | Need Help?? |
So what have you tried so far?
My idea: read the first file, build a regex from all lines (by joining the lines with |), then read the second file, and prepend a # to all lines which match the regex. (It's easier if you first produce the correct output instead of editing the file in-place).
In Section
Seekers of Perl Wisdom
|
|