[EMAIL PROTECTED] wrote:
> system("$filename john.doc");
> But it says it cannot find the $filename path
> the $filename form is "C:/Program Files/Microsoft Office/Office/WINWORD.EXE"
> How can i overcome this problem?
I have no idea how does the Windows shell work, and how does it handle quotes and escapes, but the problem is caused probably by the white space in your path. Here are my suggestions:
system $filename, "john.doc";
or:
system qq("$filename" john.doc);
Maybe try escaping every space in your $filename before:
$filename =~ s/ /\\ /g;
I haven't tested it myself.
-zsdc.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]