On Mon, 28 Jun 1999 22:36:46 -0400, bobbys wrote: >Is there any way to execute a DOS program and pass arguments to it with Perl? I >know very little of Perl on the Wintel side of things, and I have to have this >custom DOS-based executable do its work. On plain DOS, you can use system("prog /option file1 file2"); or `prog /option file1 file2`; which both do file globbing (converting "*.txt" to a list of files), or system('prog','/option','file1','file2'); which doesn't do file globbing: "*.txt" would simply literally be passed to the program. system() and backticks behave differently with regards to STDOUT and STDERR. I think system() reuses STDOUT and STDERR of the script (except tied handles, that doesn't work), while backticks capture the program's STDOUT into the value returned; STDERR still goes to the script's STDERR. Bart. ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org