UNIVERSAL-moniker reviews

cpanratings
 

RSS | Module Info | Add a review of UNIVERSAL-moniker

UNIVERSAL-moniker (0.08)

No overall rating since I have no use for this module, nor would I use it if I did. It really, *really* should not be used in production because of how it patches UNIVERSAL. Granted, since this module is in the UNIVERSAL namespace, that is no surprise, but I feel that the warning can not be understated for those who want this functionality and do not yet understand the ramifications of its implementation.

IMO, what would be better is something a bit more sophisticated (and in a different namespace) which takes as import arguments a list of modules to patch, and patches *only* those namespaces *lexically*.

That should not be hard to do by using some combination of B::Hooks::EndOfScope and Import::Into.

If you *really* want to be magickal, perhaps there's some way to determine which modules are loaded in the current scope, and patch *those* automatically (lexically, of course :)

Still, neat concept. I'd like to see a safer implementation!

Steve Scaffidi - 2012-12-27T09:43:17 (permalink)

2 out of 2 found this review helpful. Was this review helpful to you?  Yes No

UNIVERSAL-moniker (0.08)

Perl is not Ruby != everything Ruby does is horrible. This module has its uses.

Steven Haryanto - 2012-12-26T07:26:04 (permalink)

2 out of 3 found this review helpful. Was this review helpful to you?  Yes No

UNIVERSAL-moniker (0.08) *

Perl is not ruby. Monkey-patching UNIVERSAL is horrible. Do not use!

Karen Etheridge - 2012-12-24T12:51:51 (permalink)

5 out of 7 found this review helpful. Was this review helpful to you?  Yes No