in reply to Manipulating key/value output
use warnings; use strict; use Data::Dumper; my %hash = ( output1 => 'on', output2 => 'on', output3 => 'on', announcement => 'test', ); $hash{$_} = $hash{announcement} for keys %hash; delete $hash{announcement}; print Dumper(\%hash);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Manipulating key/value output
by coding_new (Sexton) on Jan 21, 2011 at 22:07 UTC |