|
Parse::IRCLog::Result -- results of parsing an IRC logfile |
Parse::IRCLog::Result -- results of parsing an IRC logfile
version 1.101
$Id: /my/cs/projects/irclog/trunk/lib/Parse/IRCLog/Result.pm 27907 2006-11-13T15:40:37.121620Z rjbs $
use Parse::IRCLog;
$result = Parse::IRCLog->parse("perl-2004-02-01.log");
my %to_print = ( msg => 1, action => 1 );
for ($result->events) {
next unless $to_print{ $_->{type} };
print "$_->{nick}: $_->{text}\n";
}
See the Parse::IRCLog manpage. This module describes the result of parsing.
new(@events)events
Provide iterator functionality. Five minutes of looking didn't find a mixin class for iterators, so I might end up just delegating iterator methods to a tied array object or something. This can wait.
Ricardo SIGNES <rjbs@cpan.org>
Copyright 2004 by Ricardo Signes.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Parse::IRCLog::Result -- results of parsing an IRC logfile |