2008/3/27 jiqiang yao < jiqiang123%40yahoo.com">jiqiang123
yahoo.com>:
> I have a script:
>
> #!perl -w
> system("....somefun.exe <input.txt");
>
> However, I got the warning message:
>
> '..' is not recognized as an internal or external
> command, operable program or batch file.
>
> Does anyone know what i should do to fix this relative
> path problem?
The problem is that you're using backslashes in a double-quoted string.
Backslashes are escaping characters, so "." is really the same as ".". The
nice thing is, you don't NEED to use backslashes, even though you're on
Windows. You can simply use forwardslashes, and the OS will know what to
do:
system "../../somefun.exe < input.txt";
--
[Mary said,] "Do whatever he tells you." ~ John 2:5
The Cross Reference - http://thecrossreference.blogspot.com/
Nos autem praedicamus Christum crucifixum (1 Cor 1:23)
[Non-text portions of this message have been removed]
.