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:use strict; use warnings; use Data::Dumper;
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Creating hash with variables
by vonedaddy (Initiate) on Feb 11, 2010 at 13:03 UTC | |
by Corion (Patriarch) on Feb 11, 2010 at 13:18 UTC |