Problem when moving a perl script wrote on unix to windows.
This script is wrote in perl on unix machine.
open(INPUT_LINE,"-|") || exec(chdir);
$current_path = <INPUT_LINE>;
chomp($current_path);
close(INPUT_LINE);
I have a problem with "-|" when moving a perl script wrote on unix machine to windows. In the comand line, i am getting the following message:
'-' is not recognized as an internal or external command, operable program or batch file.
How can i resolve this problem. I appreciate your help.
This script is wrote in perl on unix machine.
open(INPUT_LINE,"-|") || exec(chdir);
$current_path = <INPUT_LINE>;
chomp($current_path);
close(INPUT_LINE);
I have a problem with "-|" when moving a perl script wrote on unix machine to windows. In the comand line, i am getting the following message:
'-' is not recognized as an internal or external command, operable program or batch file.
How can i resolve this problem. I appreciate your help.