in reply to Perl Bug?
What about some more? I'm sure I would have no problems reading the output of it like thus:open my $ps, '-|', 'ps -eo pid,comm,args' or die "Can't run 'ps': $!\n";
Also, you may have chosen ps(1) solely as an example, but you may also be interested in Proc::ProcessTable.my $output = do { open my $ps, '-|', 'ps -eo pid,comm,args' or die "Can't run 'ps': $!\n"; local $/; <$ps>; };
|
|---|