in reply to scalar polymorphism

I have a suggestion: use an object instead. It's a lot less sneaky. If you want an error object, try Exception::Class.

Replies are listed 'Best First'.
Re^2: scalar polymorphism
by Ovid (Cardinal) on Aug 02, 2006 at 19:48 UTC

    ++

    Absolutely. I'm not a fan of doing funky things that you can't immediately see in code. It's a maintenance headache. Sometimes it's fun to do, but if you can avoid it, that's a good thing. It's one of the reasons I rarely use tied variables.

    Cheers,
    Ovid

    New address of my CGI Course.