in reply to Re^2: Perl regex txt file new line (not recognised?)
in thread Perl regex txt file new line (not recognised?)

Can you explain how my memory file fails to simulate the test case you used to confirm the original code?

If you change the \n's (LF) in your $disk_file to \r\n (CRLF), you should see the problem that looks like what the OP was describing.