in reply to Re^5: I don't understand UNIVERSAL::DOES()
in thread I don't understand UNIVERSAL::DOES()
*isa= \&UNIVERSAL::isa;
works great for me. I don't even have to "use UNIVERSAL" for this. There being no UNIVERSAL->import() makes some sense to me, but, as noted in Universally unimportant and overused, UNIVERSAL->import() appears to exist (and causes problems).
Defining a special UNIVERSAL::isa() that can detect when it has been misused would be an acceptable compromise to me.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: I don't understand UNIVERSAL::DOES() (import)
by ikegami (Patriarch) on Mar 12, 2007 at 08:24 UTC |