#!/usr/bin/perl use strict; use warnings; use IPC::System::Simple qw/capturex/; my $cap = capturex("perl", "/root/Desktop/abc.pl"); die "Couldn't capture output: $!" unless $cap; print $cap;
In reply to Re: Directing STDOUT of called perl script to a variable within a calling perl script
by Khen1950fx
in thread Directing STDOUT of called perl script to a variable within a calling perl script
by uday_sagar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |