in reply to Re^4: system function not handling string properly
in thread system function not handling string properly
$VAR1 = 'www.youtube.com/watch?v=mark';
but after setting
$Data::Dumper::Useqq = 1;
I get
$VAR1 = "w\0w\0w\0.\0y\0o\0u\0t\0u\0b\0e\0.\0c\0o\0m\0/\0w\0a\0t\0c\0h +\0?\0v\0=\0m\0a\0r\0k\0";
To get the correct output, I have to
use Encode; $link = decode('utf-16-le', $link);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: system function not handling string properly
by McA (Priest) on Sep 06, 2013 at 21:54 UTC | |
by Anonymous Monk on Sep 07, 2013 at 08:13 UTC | |
by hermes1908 (Novice) on Sep 07, 2013 at 02:40 UTC |