The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IRC::Toolkit::Parser - Functional-style IRC filter interface

SYNOPSIS

  use IRC::Toolkit::Parser;

  my $ref = irc_ref_from_line( $raw_irc_line );

  my $raw_line = irc_line_from_ref( $ref, colonify => 1 );

DESCRIPTION

A simple functional-style frontend to POE::Filter::IRCv3.

This will be slower than using the filter directly, but it's convenient for one-offs.

See POE::Filter::IRCv3 for details.

Also see IRC::Message::Object for a handy object-oriented interface to IRC event transformation.

irc_ref_from_line

Takes a raw IRC line and returns a HASH as described in the documentation for POE::Filter::IRCv3.

irc_line_from_ref

Takes a HASH as described in POE::Filter::IRCv3 and returns a raw IRC line.

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>