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.
In reply to Re^3: Perl regex txt file new line (not recognised?)
by haukex
in thread Perl regex txt file new line (not recognised?)
by thurinus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |