Subject: | Ampersands have to be escaped with Windows' start command |
The ampersand is used to separate commands on Windows. Therefore
$url = "http://www.example.com?key1=val1&key2=val2";
system("start $url");
does
start http://www.example.com?key1=val1
key2=val2
which usually leads to a "command not found" error.
Escape the ampersand with ^ and it works as intended:
$url =~ s/&/^&/g;
system("start $url"); # ok!