use Math::Complex; print "+ is supported\n" if (Math::Complex->can("+"));