Perl: the Markov chain saw | |
PerlMonks |
Re: Hash value modificationby sk (Curate) |
on Jul 25, 2005 at 08:08 UTC ( [id://477714]=note: print w/replies, xml ) | Need Help?? |
perldoc -f values
Note that the values are not copied, which means modifying them will modify the contents of the hash: for (values %hash) { s/foo/bar/g } # modifies %hash values Can you give an example on what you are seeing?
SK Update: Are you not seeing this behavior?
Output
In Section
Seekers of Perl Wisdom
|
|