Re: [BUG] CGI and URI::URL modules collision
Gisle Aas (gisle@aas.no)
10 Oct 1997 09:29:12 +0200
Stas Bekman <sbekman@iil.intel.com> writes:
> This is a bug report:
> for Linux 2.30 , IRIX5.3, Solaris OSs
> URI::URL is part of LWP5.13 and CGI is 2.36
> perl 5.004.01
>
> Whenever I use:
>
> use CGI qw(:standard :html2);
> use URI::URL;;
>
> and run the perl5.004.01 perl on these two lines I get:
>
> Prototype mismatch: sub main::url vs ($;$) at
> /usr/local/lib/perl5.004/Exporter.pm line 155
> Exporter::export('URI::URL', 'main') called at
> /usr/local/lib/perl5.004/Exporter.pm line 171
> Exporter::import('URI::URL') called at makestat.pl line 17
> main::BEGIN() called at
> /big/dom/xeprotec/cgi-bin/lib/lib/perl5.003/site_perl//URI/URL.pm line 0
> eval {...} called at
> /big/dom/xeprotec/cgi-bin/lib/lib/perl5.003/site_perl//URI/URL.pm line 0
>
> It doesn't matter what machine it runs on since I have this problem on
> Linux and IRIX mercury 5.3, Solaris
>
> At least one more person reported on my request with the same problems
>
> It doen't stop the program from running from the shell, but it results
> server error once running thru the web
>
> Any hints?
Both URI::URL and CGI will try to export its version of the url()
function. I would cure it with:
use CGI qw(:standard :html2);
use URI::URL (); # don't import anything
Regards,
Gisle