Indeed, insertion order is important in my code but $x is simply used as an abbreviation for $digit{$nu}, $digit{$nl} and the other hashes I've included in my code. It facilitates cut'n'paste... ;-)
Thanks for the code snippet, though. I'll work on it...