# from Eric Wilhelm # on Sunday 28 January 2007 02:47 pm: >the way it does the eval causes VERSION to turn out as undef due >to compile/run-time distinctions. M::B::ModuleInfo appears to have > the same issue.
[solution: compile the assignment into a subref] I've cleaned this up a bit, and it passes all of the tests. Anybody want to give it a whirl and/or complain about it before it goes in trunk? http://scratchcomputing.com/tmp/mi_version.patch John: note that this works (and is in fact required) whether you go with the => or inline assignment method. I prefer the assignment for readability and avoidance of the "how aggressively does => quote?" question. I guess I'm saying if you're going to be sneaky, be really sneaky. --Eric -- The opinions expressed in this e-mail were randomly generated by the computer and do not necessarily reflect the views of its owner. --Management --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------