in reply to Executing a Dos command
You want the window to stay open so you can read the output?
If that is the case something like this will do it.
The <> waits for input from STDIN (the keyboard in this case) and will prevent the window closing.#!/usr/bin/perl use strict; use warnings; # do something print "results\n"; # do something else print "more results\n"; system('dir'); print "done. hit return\n"; <>;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Executing a Dos command
by TGI (Parson) on Aug 11, 2007 at 21:27 UTC |