Try following code
$file = "somefile.file";
system( "dos2unix $file $file" );
or
$file = "somefile.file";
system( "mv $file $file" );
The system command seems to pass second argument to shell as command. How can I avoid this ?
I tried
@argv = ( "mv", $file, $file );
system(@argv);
I get same error. What am I missing ?