Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Hash value modification

by anonymized user 468275 (Curate)
on Jul 25, 2005 at 08:57 UTC ( [id://477724]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://477724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-18 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found