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
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