Jon Portnoy > IRC-Toolkit-0.071001 > IRC::Toolkit::Parser

Download:
IRC-Toolkit-0.071001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.071001   Source   Latest Release: IRC-Toolkit-0.088001

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>

syntax highlighting: