Removing CRLF (0D 0A) from string in Perl

后端 未结 3 739
梦如初夏
梦如初夏 2021-01-18 00:11

I\'ve got a Perl script which consumes an XML file on Linux and occasionally there are CRLF (Hex 0D0A, Dos new lines) in some of the node values which.

The system w

3条回答
  •  伪装坚强ぢ
    2021-01-18 01:05

    Typical, After battling for about 2 hours, I solved it within 5 minutes of asking the question..

    $output =~ s/[\x0A\x0D]//g; 
    

    Finally got it.

提交回复
热议问题