in reply to Manipulating key/value output
Merge or replace?
A simple example:
A simple example:
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 |
In Section
Seekers of Perl Wisdom