in reply to Re^2: Dealing with files with differing line endings
in thread Dealing with files with differing line endings

As you say, I can just force LF for line boundaries

No need to force anything. $/ is already a LF on all systems except ancient MacOS. Just replace chomp; with s/\s+\z//;.