Then the string didn't contain what you said it did. decode_utf8 does character decoding, not JavaScript-ish string literal parsing.
>perl -MEncode -E"$_=decode_utf8('\u0000\r\n'); say; s/\0//g; say" \u0000\r\n \u0000\r\n
In reply to Re^5: Unicode character handling with Net::Telnet::Cisco
by ikegami
in thread Unicode character handling with Net::Telnet::Cisco
by josh803316
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |