in reply to Strange warning when using Math::Trig

I know your problem is already solved... but maybe it's worth knowing that you always have the option to avoid such name clashes by saying

use Math::Trig ();

The empty parentheses tell a module to not auto-import anything into your namespace. You can then call the functions fully-qualified as needed, e.g. Math::Complex::tan(...).

Replies are listed 'Best First'.
Re^2: Strange warning when using Math::Trig
by hda (Chaplain) on Nov 11, 2008 at 13:14 UTC
    Thanks almut, that's a pretty good advice.
    cheers