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"; };
In reply to Re: Copy terminal lines-unix
by Corion
in thread Copy terminal lines-unix
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |