"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
"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