Posted the following msg at Perl-Win32-Users but did not get any response.
Hope someone here can help. Thanks.
===
What is the search order perl uses to look for program in the system()
function?
If the extension is not specified, perl seems to first look for ".exe" in
all the directories in the PATH environment variable. After going through
all the directories, if still not found, then it looks for ".bat", which is
not consistent with Windows.
Example: My PATH is set to PATH=path1;path2. In path1, I have program.bat.
In path2, I have program.exe. Doing a system("program") will result in
running program.exe. I was expecting program.bat. If I remove program.exe
from path2, then program.bat is run. Is this the correct behavior or is
this a bug? Is there a way to tell perl to search through the path, one
directory at a time, looking for exe and then bat?
I am using perl version 5.005_03 built for MSWin32-x86-object on WinNT 4.0.
Thanks, --David
~~~~~~~~~~~~~~~~~~~~~~~~
David T. Kwan
[EMAIL PROTECTED]
(650)567-7840
Silicon Spice, Inc.
777 E. Middlefield
Mountain View, CA 94043
~~~~~~~~~~~~~~~~~~~~~~~~
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl