Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

POE::Filter::Stream

Name POE::Filter::Stream
Version 1.368
Located at /usr/share/perl5
File /usr/share/perl5/POE/Filter/Stream.pm
Is Core No
Search CPAN for this module POE::Filter::Stream
Documentation POE::Filter::Stream
Module Details POE::Filter::Stream

NAME

POE::Filter::Stream - a no-op filter that passes data through unchanged


SYNOPSIS

  #!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;


DESCRIPTION

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.


SEE ALSO

the POE::Filter manpage for more information about filters in general.

The SEE ALSO section in POE contains a table of contents covering the entire POE distribution.


BUGS

None known.


AUTHORS & COPYRIGHTS

Please see POE for more information about authors and contributors.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026