As of the 5.6 release of Perl, the use overload pragma provides the following functions for public consumption.
This function returns the string value that OBJ would have in absence of stringification overloading ("").
This function returns a true value if OBJ is subject to any operator overloading at all, and false otherwise.
This function returns a reference to whatever code implements the overloading for OPERATOR when it operates on OBJ, or undef if no such overloading exists.
Copyright © 2001 O'Reilly & Associates. All rights reserved.