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


in reply to Need help with a simple perl script

If you do have extra newlines or CR+newlines in your original data, viewing it with a HEX editor like Bless might help. It will show the extra 0A and/or 0D.