Re: Perl hashing problem

1999-10-27 Thread Brad
-BEGIN PGP SIGNED MESSAGE- On Wed, 27 Oct 1999, Jean-Yves BARBIER wrote: > My first table contains > As it comes without ordering on sizes, I want to sort it > in another hash table, so I make: > @New_Table = sort { $File_Table{$a} cmp $File_Table{b} } keys %File_Table; > > but when I

Perl hashing problem

1999-10-27 Thread Jean-Yves BARBIER
Hi all, I have a problem with 2 hash tables in perl: My first table contains As it comes without ordering on sizes, I want to sort it in another hash table, so I make: @New_Table = sort { $File_Table{$a} cmp $File_Table{b} } keys %File_Table; but when I print both tables on the screen, New_Tab