in reply to Perl. Problem with HASH value

This is not a problem in Perl. You told Perl what to do:
$tmpContent->{'SWITCH'} = $switchValues;
You probably meant this:
my $tmpContent = { %$setSwitchValue };
i.e. do not assign a reference to the old value to tmpContent, but a reference to a newly created hash with the values you want to keep.

Replies are listed 'Best First'.
Re^2: Perl. Problem with HASH value
by breeze (Initiate) on Dec 16, 2011 at 20:12 UTC
    big thanks! this is what i need exactly!