in reply to Re: Table::Extract unblessed reference
in thread Table::Extract unblessed reference

If $that is not a reference, ref returns a false value and the constructor uses the value of $that literally as the class name. In effect, you can call new() as a class or an object method and receive a new object back.

I consider that a bad design decision, but good luck trying to convince people that, when the documentation recommends it....

Replies are listed 'Best First'.
Re^3: Table::Extract unblessed reference
by mojotoad (Monsignor) on Aug 01, 2005 at 06:39 UTC
    I consider that a bad design decision, but good luck trying to convince people that, when the documentation recommends it....

    Actually, I agree with this. That little snippet is an artifact from back when I wrote the original code. Since then I've changed my mind about that trick.

    Matt