http://qs321.pair.com?node_id=621670


in reply to Re^5: [Good news] here docs portability!
in thread [Good news] here docs portability!

Broken? Per POSIX, -e is not a special flag, and should be output. With the XSI extensions, you are supposed to get \r -> CR whether you want it or not. Without XSI, the output when there are backslashes is undefined.

So perl is the way to go.