in reply to Running a script from a script and capturing its output
Capture using backticks.
#script to be called print "hello world\n";
#script that does the calling $output = `perl hello.pl`; print "Hello.pl printed\n\t$output"; #OUTPUT #Hello.pl printed # hello world #
Hope this helps.
|
|---|