I used the Encode module and did the following:
$cleaned_output = decode_utf8( $command_output );
$cleaned_output =~ s/\0//g;
This removed all the null unicode characters and left me with /r/r/n for the empty return string. I gained some insight from the following article: Unicode-processing issues in Perl
| [reply] [d/l] |
>perl -MEncode -E"$_=decode_utf8('\u0000\r\n'); say; s/\0//g; say"
\u0000\r\n
\u0000\r\n
| [reply] [d/l] [select] |
Yes, you are correct, that's probably why I was confused and having a hard time with it as well. I didn't have visibility into what the string was....from the bug report/customer site it seems the null value was later being converted into that string. Thank you for your help though!!! I appreciate you taking your time to help me out and guide me!
| [reply] |