On Tue, 24 Jun 2003, Ken Williams wrote: > On Monday, June 23, 2003, at 04:29 PM, Michel Rodriguez wrote:
> > Variable/Parameter conventions can start religious wars, so I would > > like to offer module authors a way to be a little oecumenical, so they > > can easily offer named parameters that follow the > > one_true_perl_convention or even the baddlyNamedCamelCaseConvention. > > We created a converter like this for Mason, in > HTML::Mason::ApacheHandler . In this case, we needed to switch back & > forth between 'MasonAllowGlobals' and 'allow_globals'. I could easily expose a function that would let you pass a code ref so you can tweak the keys as much as you want. Maybe this could just be a patch to Hash::Util but at the moment Hash::Util provides only functions to lock/unlock hashes, so I don't know if the two feature sets really belong together. Michel Rodriguez Perl & XML http://www.xmltwig.com
