http://qs1969.pair.com?node_id=293491


in reply to Error in code - read-only value?

sort returns a sorted list, so sort {$a->{ID} <=> $b->{ID} } @all_hashes (without the assignment) should be sufficient.

Not: Grossly uninformed post here. You'd want to say

@sorted_all_hashes = sort {$a->{ID} <=> $b->{ID}} @all_hashes