in reply to Hash value modification

Here's a test, which shows the same behaviour happening as for arrays:
#!/usr/bin/perl use Data::Dumper; my %h = ( aa => hello, bb => ghello ); foreach ( values %h ) { s/el/ig/g }; print Dumper( \%h );

Output:

$VAR1 = { 'aa' => 'higlo', 'bb' => 'ghiglo' };

One world, one people