POE::F...:Stream(3pm)

πŸ’– NAME πŸ’–

okay bestie, gather round, because this one is so chill. POE::Filter::Stream β€” it's a no-op filter that passes data through unchanged. that's it. that's the whole vibe. it literally does nothing and does it flawlessly. icon behavior honestly. ✨


🌈 SYNOPSIS 🌈

here's the whole flex in action, and yes you can just copy-paste it, it's giving very much "run this right now":

#!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 πŸ¦‹

so like. POE::Filter::Stream passes data through without changing it. no editing, no filtering, no commentary, just data in β†’ data out, untouched, living its best life. 🫢

it follows POE::Filter's API and implements no new functionality. zero. none. it's a filter that refuses to filter and honestly? we respect the commitment.

in the SYNOPSIS up there, POE::Filter::Stream is used to collect keystrokes without any interpretation and display output without any embellishments. raw input, raw output, no notes, periodt. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

  • POE::Filter for more information about filters in general. (like, the whole filter family lore, iykyk)

also bestie, the SEE ALSO section in POE contains a table of contents covering the entire POE distribution. the whole map. the entire cinematic universe. go explore. πŸ—ΊοΈβœ¨


πŸ’€ BUGS πŸ’€

None known. not one. not a single one. she's clean, she's flawless, she's unbothered. 🧚


πŸŽ€ AUTHORS & COPYRIGHTS πŸŽ€

Please see POE for more information about authors and contributors. give them their flowers, they earned them. πŸ’


this page came from the User Contributed Perl Documentation β€” the manual name up top is POE::F...:Stream(3pm) (the terminal clipped it, not me πŸ™ˆ) β€” and it's from perl v5.34.0, dated 2022-03-25. that's the whole thing bestie, stream it, don't change it, bye πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from