Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: Re: A few random questions.

by BrowserUk (Patriarch)
on Dec 09, 2003 at 23:40 UTC ( #313601=note: print w/replies, xml ) Need Help??

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.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re: Re: Re: Re: A few random questions.
by Elijah (Hermit) on Dec 10, 2003 at 02:14 UTC
    Worked great, thank you!

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://313601]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2023-12-01 09:24 GMT
Find Nodes?
    Voting Booth?

    No recent polls found