I am reading some text files and applying a regex to every line and keeping the ones that match.
This works as expected...but I also want to make it generic.
(I save the regex string out to a file)
By walking line-by-line, do I mess up the "=~ m//sm" options? Do I need a flag that says to apply the regex on a line-by-line basis or just to the whole string?