That was it all right.  Thank you.  And this code's been in production for
years before I got it...

Now, purely for information, what actually was happening in the original
code?

Rgds, GStC.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 31, 2005 5:02 PM
To: Graeme St. Clair
Cc: 'beginners@perl.org'
Subject: Re: Hash Getting Doubled? 

>  
> What is going on that I haven't understood?
>  
> Rgds, GStC.

Your entire problem is :

foreach $capval ( sort bynumber %capdef ) {

Perhaps you want to sort by the KEYS of %capdef

foreach $capval ( sort keys %capdef ) { }

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
        Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g Computer
software  consists of  only  two  components: ones  and
zeros, in roughly equal proportions.   All that is required is to
sort them into the correct order.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to