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

2003-06-09 Thread Rich Rauscher
The only problem is that this implementation requires the keys to be reverse sorted (longest to shortest-- remove the "reverse" on the sort and it breaks). To handle unordered names, try this (note: I eliminated the replication of parent hash node keys, as a personal preference): use strict; use

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