Config::Irssi::Parser - Yapp-based LALR parser for the irssi config files.
use Config::Irssi::Parser; my $p = new Config::Irssi::Parser; my $hashref = $p->parse(\*STDIN);
This parses an irssi config file into the equivelent perl data structure. It's quite simple, really.
This is a simple constructor that returns a new Config::Irssi::Parser object.
Parser the contents of $fh and return a hashref of its contents, or undef on failure.
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.
There might be issues with backslashes... Quite likely there are many other bugs.
This is part of the pirssi project. http://dylan.hardison.net/software/projects/pirssi.
Irssi's homepage: http://irssi.org.
Dylan William Hardison <dhardison@cpan.org>
Copyright (C) 2004 by Dylan William Hardison
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This module contains code copyright (C) 1998-2001 by Francois Desarmenien, which is licensed under either the perl artistic licence or the GPL.
To install Config::Irssi::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Irssi::Parser
CPAN shell
perl -MCPAN -e shell install Config::Irssi::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.