When I use transport API of Net::SFTP::Foreign to connect to remote server on windows, It reports error
"Invalid option 'host' or bad combination of options" after Net::SFTP::Foreign->new is invoked
code is below:
pipe $pR,$pW;
$sftp = Net::SFTP::Foreign->new("$user\@$ip",transport=>[$pR,$pW]) or
$rdyTCE{$city1} = 1;