NAME

Config::Irssi::Parser - Yapp-based LALR parser for the irssi config files.

SYNOPSIS

use Config::Irssi::Parser;
my $p = new Config::Irssi::Parser;
my $hashref = $p->parse(\*STDIN);

DESCRIPTION

This parses an irssi config file into the equivelent perl data structure. It's quite simple, really.

METHODS

new()

This is a simple constructor that returns a new Config::Irssi::Parser object.

parse($fh)

Parser the contents of $fh and return a hashref of its contents, or undef on failure.

LIMITATIONS

The current implementation loses all comments and empty lines, which is in contrast to irssi's own parser which preserves both comments and empty lines. If anyone has an elegant way of fixing this, patches are welcome.

BUGS

There might be issues with backslashes... Quite likely there are many other bugs.

SEE ALSO

This is part of the pirssi project. http://dylan.hardison.net/software/projects/pirssi.

Irssi's homepage: http://irssi.org.

AUTHOR

Dylan William Hardison <dhardison@cpan.org>

COPYRIGHT

Copyright (C) 2004 by Dylan William Hardison

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.