in reply to Copy terminal lines-unix
See the backticks:
my $output = `ls`;
You cannot read terminal output after the fact from Perl, but you can paste the terminal output into Perl:
while( <> ) { chomp; print "You pasted: [$_]\n"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Copy terminal lines-unix
by baxy77bax (Deacon) on Oct 06, 2015 at 09:39 UTC | |
by Corion (Patriarch) on Oct 06, 2015 at 09:45 UTC | |
by choroba (Cardinal) on Oct 06, 2015 at 12:13 UTC |