In Perl, assigning a reference to a hash ($def = \%any_hash) copies the reference. If the question implies copying the contents (e.g., %def = %any_hash), Perl hashes are unordered collections, so copying them yields the same key-value pairs but in a randomized internal order.