On Wednesday 10 October 2001 20:43, Matthew Sachs wrote:

> chromatic writes that he wants to have something similar to 'use
> constant', but which also lets you get the name of the constant - not
> just its value.  He goes on to discuss the implementation:

> I usually use dualvar from Scalar::Util for this.  dualvar gives you
> magic scalars that behave similarly to $!.

That's a great solution when it's possible to modify an existing program or 
module.  That was not an option in the case that prompted my idea.  (It's 
going in my toolbox, though.  Thank you!)

There are obviously plenty of good alternatives to the problem. 
Devel::Constants works best when a module has to be treated like a black box, 
for whatever reason.

-- c

Reply via email to