in reply to running script within a script (semi-interactive)
To capture the output of a script you can use backticks, like this:
To pass some_script.pl STDIN, you would open a pipe to it (which is explained in the docs mentioned above).my $output = `some_script.pl`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: running script within a script (semi-interactive)
by andal (Hermit) on Oct 05, 2010 at 08:35 UTC | |
by tospo (Hermit) on Oct 05, 2010 at 08:52 UTC |