---
name: "Test::Trap::Builder::PerlIO"
section: "3pm"
platform: "linux"
package: "perl-test-trap"
version: "0.3.5-6"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Test::Trap::Builder::PerlIO"
---

# Test::Trap::Builder::PerlIO(3pm)

Capture strategy using PerlIO::scalar

## NAME

Test::Trap::Builder::PerlIO - Capture strategy using PerlIO::scalar

## VERSION

Version 0.3.5

## DESCRIPTION

This module provides a capture strategy *perlio*, based on PerlIO::scalar, for the trap's output layers.  Note that you may specify different strategies for each output layer on the trap.

See also Test::Trap (:stdout and :stderr) and Test::Trap::Builder (output\_layer).

## CAVEATS

These layers use in-memory files, and so will not (indeed cannot) trap output from forked-off processes -- including **system()** calls.

Threads?  No idea.  It might even work correctly.

## BUGS

Please report any bugs or feature requests directly to the author.

## AUTHOR

Eirik Berg Hanssen, `"<ebhanssen@cpan.org>"`

## COPYRIGHT & LICENSE

Copyright 2006-2014 Eirik Berg Hanssen, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
