in reply to Re^2: Converting Column Into Rowin thread Converting Column Into Row
use Tie::IxHash; tie %data, 'Tie::IxHash'; [download]
Tie::IxHash actually does pretty much the same thing as your code, under the hood.