in reply to Re: substitution with regex
in thread substitution with regex

open IN,'<',"part2.txt" or die "could not open file part2;txt $!";
Yep, and that's one reason why I prefer putting filenames in variables :-) (otherwise, ++, of course)

Replies are listed 'Best First'.
Re^3: substitution with regex
by Laurent_R (Canon) on Jan 19, 2018 at 17:52 UTC
    I prefer putting filenames in variables
    Yes soonix++, and that's what I also do systematically in actual code. When suggesting corrections on a forum, however, I tend to stress only the most essential suggestions, to avoid distracting attention with more secondary matters.