Description
Perl tests can capture and compare what code writes to standard output and standard error. This is useful for command-line tools, diagnostics, warnings, and user-facing terminal messages.
It is a developer testing library. Expected output should avoid including secrets, absolute machine-specific paths, or text that changes unpredictably across environments.