POE::Filter::Stream(3pm)

POE::Filter::Stream3pm

A no-op filter that passes data through unchanged

Usage

  #!perl
  use Term::ReadKey;
  use POE qw(Wheel::ReadWrite Filter::Stream);
  POE::Session->create(
    inline_states => {
      _start => sub {
        ReadMode "ultra-raw";
        $_[HEAP]{io} = POE::Wheel::ReadWrite->new(
          InputHandle => \*STDIN,
          OutputHandle => \*STDOUT,
          InputEvent => "got_some_data",
          Filter => POE::Filter::Stream->new(),
        );
      },
      got_some_data => sub {
        $_[HEAP]{io}->put("<$_[ARG0]>");
        delete $_[HEAP]{io} if $_[ARG0] eq "\cC";
      },
      _stop => sub {
        ReadMode "restore";
        print "\n";
      },
    }
  );
  POE::Kernel->run();
  exit;

Overview

POE::Filter::Stream passes data through without changing it. It follows POE::Filter's API and implements no new functionality.

In the "SYNOPSIS", POE::Filter::Stream is used to collect keystrokes without any interpretation and display output without any embellishments.

Authors & copyrights

Please see POE for more information about authors and contributors.

Releases

14 releases since Debian 2.2 (Potato); the text changed 12 times.

  1. 2.2
  2. 3.0
  3. 3.1
  4. 4.0
  5. 5.0
  6. 6.0
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12–13
  13. Arch

Bugs

None known.

From perl-poe 1.370-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.