in reply to Two simple code style advice questions
For 1st case, if I have the chance to define a spanking new hash, I would use the map version. Else, I slightly prefer the 2d version using the hash slice.
For 2d case, I would prefer the ? : version unless the context is of mathematics. Then again I would rather use the module.
In Section
Seekers of Perl Wisdom