- or download this
my @unwanted = qw( schema log );
- or download this
my %unwanted = map { $_ => 1 } @unwanted;
...
my %subhash = %hash{ @wanted };
do_something( \%sub_hash );
- or download this
my %subhash = %hash;
delete @subhash{ @unwanted };
do_something( \%sub_hash );
- or download this
delete local @hash{ @unwanted };
do_something( \%hash );