POE::Filter::IRC(3pm)

πŸ“¦
version 6.95 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– POE::Filter::IRC β€” bestie edition πŸ’–

okay so this is POE::Filter::IRC, a page from the User Contributed Perl Documentation section (yes that's the manual name, it's giving ✨community-maintained✨). sit down, grab a strawberry πŸ“, and let's talk about parsing IRC like it's our personality.

✨ NAME ✨

POE::Filter::IRC β€” a POE-based parser for the IRC protocol πŸ¦‹

✨ SYNOPSIS ✨

my $filter = POE::Filter::IRC->new();
my @events = @{ $filter->get( [ @lines ] ) };

that's it. that's the whole vibe. two lines and you're parsing IRC. iconic behavior honestly πŸ‘‘

✨ DESCRIPTION ✨

so what does POE::Filter::IRC actually do? it takes lines of raw IRC input and turns them into weird little data structures β€” ngl they are kind of odd-looking, but they're built to be fed straight into POE::Component::IRC, so it's fine, it's on purpose πŸ’…

they look like this:

{ name => 'event name', args => [ some info about the event ] }

a hashref with a name and an args array. simple. clean. slay 🌈

πŸ“’ lowkey important lore: this module was long deprecated in POE::Component::IRC. it now uses the same mechanism that that uses to parse IRC text. so if you were feeling nostalgic β€” it's giving legacy, bestie, we've moved on (but the filter still works, don't panic 🫢).

πŸŽ€ CONSTRUCTOR πŸŽ€

✨ new ✨

calling new returns a new POE::Filter::Stackable object that contains both a POE::Filter::IRCD object and a POE::Filter::IRC::Compat object. πŸ’–

basically: it's a two-in-one combo deal, and it does the same job that POE::Filter::IRC used to do all by itself. glow-up era ✨ the filter got a squad and the whole thing just works. periodt.

✨ METHODS ✨

the methods live in the docs for POE::Filter::IRCD and POE::Filter::IRC::Compat β€” so go read those, bestie, they've got the details. this page is just the doorway πŸšͺπŸ’«

🌸 AUTHOR 🌸

Dennis "fimmtiu" Taylor

refactoring by Chris "BinGOs" Williams <chris@bingosnet.co.uk> 🫢

πŸ’œ SEE ALSO πŸ’œ

the documentation for POE and POE::Component::IRC.

POE::Filter::Stackable

POE::Filter::IRCD

POE::Filter::IRC::Compat


that's the whole page, no notes πŸ’… and for the record: this was perl v5.40.1, dated 2025-08-21, served up in the POE::Filter::IRC(3pm) manual. go forth and parse some IRC, bestie, you're so main character for reading manpages fr fr πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ where this page comes from