in reply to Re: Re: A few random questions.
in thread A few random questions.
Based on your example, you want to run another perl script from within your perl program, and have it present its output in a separate cli window, then this maybe what you are looking for.
my $filename = 'some perl script (potentially with spaces).pl'; system qq[ start cmd /k perl "$filename" ];
Using qq// for the outer set of quotes removes the need to escape the inner ones needed around the filename whilst still allowing $filename to be interpolated. See Quote-like operators for more info.
Using /k will ensure that the window remains and the script output is visible after the command has ended.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: A few random questions.
by Elijah (Hermit) on Dec 10, 2003 at 02:14 UTC |