- or download this
$h->{foo}{bar} =~ s/[._]/ /g;
Some::Custom::Function($h->{foo}{bar});
$h->{foo}{bar} =~ s/^\s+//;
$h->{foo}{bar} =~ s/\s+$//;
$h->{foo}{bar} =~ s/`/'/g;
- or download this
for ($h->{foo}{bar}) {
s/[._]/ /g;
...
s/\s+$//;
s/`/'/g;
};
- or download this
map { $_ = foo( $bar, $_ ) } values %somehash;