Thank you for the long answer McA! I will look into File::Slurp as well. I hope to continue learning and avoid these silly errors. I was aware that global variables were a bad idea, I just didn't realize I was changing $/ globally. I have very little programming experience in general, and about 1 week experience with Perl :P