in reply to hash sorting problems

Hashes have both keys and values; they arent stored by indices (like arrays). Perl stores the hash elements internally by calcing some values... As already described above, try something similar to
@sorted_keys = sort { $a <=> $b } keys %hash; #use { $a <=> $b } for numerical sorting #use { $a cmp $b } for string sorting foreach(@sorted_keys) { print $hash{$_}; }

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.