in reply to How to build a hash?

Perl is a dynamic language, there's no need at all to know beforehand how many items there will be in a hash or array, or how long a string will be.

Just add one item for every new one that you need, whenever you like.

And no, the item will not be pushed at the end. Hashes are intrinsically unordered, you generally have no idea where it'll end up in the hash.