On Thu, 28 Nov 2002, Wang Yuki-R59273 wrote:

> the ..\\test.xls is not same file as d:\\test,and i do know what it means,
> my perlscript is in d://perlscript//test.pl,and i wanna open
> d://test.xls,i cannnot understand why the relative path cannot work.


I doesn't matter where your perl script is. It only matters where your
cd is set to. Just before you try the open, what's the output of:
print `cd`;

You might also do the following:

print "d:\\test.xls exists\n" if -f "../test.xls";
Note I'm testing for ../test.xls not ..//test.xls.

**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to