Task: Capture STDERR from a Command Executed via Pipe in Perl
Task: Capture STDERR from a Command Executed via Pipe in Perl: a task in Terminal-Lego-15k (Harbor dataset). In Perl, when executing an external command using open with a pipe ( - ), only STDOUT is captured by default. Your task is to write a Perl script that can capture both STDOUT and STDERR…
The task
In Perl, when executing an external command using `open` with a pipe (`-|`), only STDOUT is captured by default. Your task is to write a Perl script that can capture **both STDOUT and STDERR separately** from an external command executed through a pipe, using only **core Perl modules** (no CPAN modules).
Part of PrimeIntellect/Terminal-Lego-15k.