Tie::IxHash::FromText - A parser for contructing IxHash objects
use Tie::IxHash::FromText; use Data::Dumper; print Dumper ixhash_parse(<<'TEXT'); * 1 ** 1-1 ** 1-2 *** 1-2-1 * 2 ** 2-1 * 3 ** 3-1 ** 3-2 *** 3-2-1 **** 3-2-1-1 ***** 3-2-1-1-1 ***** 3-2-1-1-2 ****** 3-2-1-1-2-1 TEXT
And it returns stuff like this:
$VAR1 = { '1' => { '1-1' => {}, '1-2' => { '1-2-1' => {} } }, '2' => { '2-1' => {} }, '3' => { '3-1' => {}, '3-2' => { '3-2-1' => { '3-2-1-1' => { '3-2-1-1-1' => {}, '3-2-1-1-2' => { '3-2-1-1-2-1' => {} } } } } }, '4' => {} };
Yung-chung Lin (a.k.a. xern) <xern@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself
To install Tie::IxHash::FromText, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::IxHash::FromText
CPAN shell
perl -MCPAN -e shell install Tie::IxHash::FromText
For more information on module installation, please visit the detailed CPAN module installation guide.