Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: I want to run a script from another script, use the same version of perl, and reroute IO to a terminal-like textbox

by jethro (Monsignor)
on Oct 01, 2013 at 15:17 UTC ( #1056494=note: print w/ replies, xml ) Need Help??


in reply to I want to run a script from another script, use the same version of perl, and reroute IO to a terminal-like textbox

This is more a suggestion how you could reach your goal some other way

You could extract the code of the command line scripts to one or more library modules. Then change the scripts to use the library modules. The scripts would just interpret the command line parameters and feed them to the library function.

Now your perl/tk program could use the library functions as well and would neither need to transfer the hash to the scripts nor fight with STDOUT and STDIN.


Comment on Re: I want to run a script from another script, use the same version of perl, and reroute IO to a terminal-like textbox
Replies are listed 'Best First'.
Re^2: I want to run a script from another script, use the same version of perl, and reroute IO to a terminal-like textbox
by ric00015 (Beadle) on Oct 01, 2013 at 15:57 UTC

    That's a really good idea. I like using modules better than calling scripts, probably for all the right reasons. :) This also gets around the passing the hash problem too.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-08-05 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (76 votes), past polls