Re: [Perl-unix-users] Sorting Flat list of Module Names into Treestructure

2003-06-05 Thread $Bill Luebkert
Martin Moss wrote: > Hi All, > > Wondering if anybody has an 'efficient' Hat on today? > > I Have a Hash who's Key's are all 'Module Names'. > e.g. > > Foo=>1 > Foo::Bar=>1 > Foo::Bar::Poo=>1 > Foo::Beer=>1 > Foo::Beer::Nuts=>1 > Foo::Beer::Nuts::Hmmm=>1 > Foo::Bar::AgainHmmm=>1 > > What I want

Re: [Perl-unix-users] Sorting Flat list of Module Names into Tree structure

2003-06-05 Thread Martin Moss
Earth to Brain!! Sorry I think I temporarily forgot the 'sort' function, Marty - Original Message - From: "Martin Moss" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 9:04 PM Subject: [Perl-unix-users] Sorting Flat list of Module Names into

[Perl-unix-users] Sorting Flat list of Module Names into Tree structure

2003-06-05 Thread Martin Moss
Hi All, Wondering if anybody has an 'efficient' Hat on today? I Have a Hash who's Key's are all 'Module Names'. e.g. Foo=>1 Foo::Bar=>1 Foo::Bar::Poo=>1 Foo::Beer=>1 Foo::Beer::Nuts=>1 Foo::Beer::Nuts::Hmmm=>1 Foo::Bar::AgainHmmm=>1 What I want to do is to turn this hash into a Hierarchical Has