in reply to Creating hash with variables
Single quotes do not interpolate, so your hash does not contain what you think it does. Add this to the top of your code:
then after your foreach loop do this:
print Dumper \%ipkey;
That said, there are likely much easier ways to do what you are trying to accomplish. If you are interested, post some example data and explain what you are trying to do. Monks love that kind of thing.
Psst... just for fun, try this:
%ipkey = @rawdata;