modification of hash keys as $_ in loop. #124

exodist opened this Issue Apr 3, 2010 · 1 comment


None yet

2 participants


"s/.../.../g for values %hash" works fine to modify every value, however "s/.../.../g for keys %hash" does not. It would be nice if that could be made to work

A use case is parsing CGI params where both keys and values contain hex, and it has already been turned into a hash:

"s/.../.../g for keys %hash, values %hash" could be done.

s/.../.../g for each %hash" would be even nicer, but each doesn't work like that


This should fall out of a real fix for hash keys that turns them into real SVs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment