问题内容: Want to add a new line in a file using perl script. I have tried but no luck if($correctedContents[$i] ~= /second line/){ @data = $correctedContents[$i] push (@data, '\n TEST Line'); For example: add a “TEST Line” into a file whenev […]