From: "jon sof" <[EMAIL PROTECTED]>
> Perl is that same. I tried system("start","$result->{DOCUMENT_NAME}")
> and it seems to work, however under win2k it doesn't as fas as on an
> win98 system.
> 
> Obviously, there are some changes between these systems concerning the
> Dos Shell.

Actually not. In this case the shell is not involved at all.

If you use the system(@list) then the shell is not started, the first 
parameter to system() must be a real existing executable, the 
executable is started directly and the rest of the list is passed to 
it as parameters.

In your case the whole problem is that in Win98 there is (as far as I 
remember) an actuall start.exe, while on Win2k it's command built 
into the shell (whether it's cmd.exe or command.com) and the Run 
dialog. So Perl fails to find any "start" executable.

I really think

        use Win32::FileOp qw(ShellExecute);
        ShellExecute $filename;

would be easiest and safest.

Jenda

===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to