Hi all,
I just finished this one-liner which builds a lexicographic tree and wanted to share it with the community.
perl -MStorable -ne 's/(.)/\{\1\}/g;eval("\$x${_}{EOS}");store(\%x,output)'To print it in a human-readable way :
perl -MStorable -MData::Dumper -e 'print Dumper retrieve(output)'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Lexicographic tree
by ambrus (Abbot) on May 05, 2010 at 08:32 UTC | |
Re: Lexicographic tree
by ambrus (Abbot) on May 05, 2010 at 09:09 UTC | |
by pierre.marchal (Novice) on May 05, 2010 at 11:09 UTC | |
by tye (Sage) on May 05, 2010 at 17:57 UTC | |
by pierre.marchal (Novice) on May 05, 2010 at 22:23 UTC | |
by tye (Sage) on May 06, 2010 at 01:39 UTC | |
by Anonymous Monk on May 05, 2010 at 10:59 UTC |