NaSe77 has asked for the wisdom of the Perl Monks concerning the following question:

when starting my script I get :
Subroutine i redefined at /usr/lib/perl5/5.6.1/CGI.pm line 241. Prototype mismatch: sub main::i () vs none at /usr/lib/perl5/5.6.1/CGI +.pm line 241.
on STDERR, but that is very strange because I dont have a main::i subroutine in my script.

Or am i just reading the errormessage the wrong way ?

Help please...

----
NaSe
:x

Replies are listed 'Best First'.
Re: CGI(?) problems ...
by Abigail-II (Bishop) on Aug 27, 2002 at 09:38 UTC
    It depends a bit on how you used use CGI;, but you may very well have an main::i function. Don't forget <i> is a valid HTML element, and hence CGI may export it (for instance, when you do use CGI qw /:standard/;).

    Abigail

Re: CGI(?) problems ...
by NaSe77 (Monk) on Aug 27, 2002 at 10:19 UTC
    found the problem ... it was infact a mixup between 2 imported modules (CGI and Math::Complex) of which each exports a sub i.

    thanks to Abigaile-II for the hint

    ----
    NaSe
    :x