add_to_hash(\%hash,'scalar','companies-microsoft-people-steve ballmer','bills bulldog') #and you suddenly decide to have another category add_to_hash(\%hash,'list','companies-cross over-supports','iTunes','photo shop') #or something more elegant