OK I think I understand this all for the most part, I've been working on files on a line by line basis for so long I didn't think I could break it up any other way. But of course something I imagine is pretty simple has got me stuck.
How do I get the entire content of a file into $file? I know how to read a file into @file, but I'm at a loss how to read the whole thing into $file to then split it up.
Comment on Re^2: Modify a line following a target line?