in reply to Removing overloaded string operator

According to the overload documentation, "no overload ..." works. So you could do something dangerous like:

eval q[package Frooble; no overload '""';];

Replies are listed 'Best First'.
Re^2: Removing overloaded string operator
by moot (Chaplain) on Feb 01, 2005 at 22:23 UTC
    I thought of that, but that's akin to overriding the as_string method, and would have a global effect (i.e. all string-forms of Frooble would then revert back to Frooble=HASH() form).

    What I was after was something like

    # prints "Blortz", i.e. the instance name print "$frooble"; # prints "Frooble=HASH(..)" print UNIVERSAL::as_string($frooble);
    but unless I'm missing something (not unusual ;) ) nothing like that exists.