in reply to Slice a hash to get a subset hash.

I'm a newbie and learning Perl by the minute. I'm not even sure if this is what you're looking for, but here is what I've come up with: my @getme = qw(Area Mayor Long Lat); %newlondon; @newlondon{$_}=$london{$_} for @getme; Please let me know if this helps.

Replies are listed 'Best First'.
Re^2: Slice a hash to get a subset hash.
by chrestomanci (Priest) on Feb 25, 2011 at 09:12 UTC

    Thank you for your reply. I hope it will be the first of many in this monestery. Welcome.