You need to supply the full path of your document, even though it may be sitting in the "current directory".
Good luck, Michèle. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to open a document as below > > #!/usr/local/bin/perl -w > > > use Tk; > > > my $mw = new MainWindow(); > > my $filename=$mw->getOpenFile(-filetypes=>[['WinWord','winword.exe']]); > > > 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? > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]