in reply to open programs with a particular file!

If it's a command-line program: system("abcde.exe"). If it's a windows program: system("start","abcde.exe").

Replies are listed 'Best First'.
Re^2: How to use perl to open programs
by ikegami (Patriarch) on Jan 20, 2006 at 22:10 UTC
    hum? Why use start for one and not the other? start will cause the Perl script to not wait for the application to finish whether it's a console application or a Windows application.
      Sorry, my windoze is a bit rusty. I seem to remember that start was required for some non-console programs.

        You'd need it for non-executables, to call up the associated application:

        system('start /wait "word.doc"'); # Word system('start /wait "program.txt"'); # Notepad or ... system('start /wait http://www.perlmonks.org/'); # Favorite browser