NAME
Tie::IxHash::FromText - A parser for contructing IxHash objects
USAGE
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' => {}
};
THE AUTHOR
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