Whenever I use:
use CGI qw(:standard :html2);
use URI::URL;;
(URI::URL is part of LWP5.13 and CGI is 2.36)
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
It doen't stop the program from running from the shell, but it results
server error once running thru the web
Any hints?
_____________________________________________________________________
Stas Bekman
Address: Aba Silver 12/29, Haifa, 32694, Israel
Phones: [w] 972-(0)4-865-5188, [h] 972-(0)4-828-2264/3020
Home Page: http://techunix.technion.ac.il/~ofelix
Resource Center http://www.eprotect.com/stas/TULARC (Java,CGI,PC,Linux)
Linux-il Home: http://www.linux.org.il/
--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.
:Whenever I use:
.
:use CGI qw(:standard :html2);
:use URI::URL;;
.
:(URI::URL is part of LWP5.13 and CGI is 2.36)
:and run the perl5.004.01 perl on these two lines I get:
[snip same error messages i get below]
:It doen't stop the program from running from the shell, but it results
:server error once running thru the web
:Any hints?
on Solaris 2.5, perl5.004_01, CGI.pm 2.36, URI::URL 4.08, LWP 5.05
i get warnings even from the shell. no diagnosis, but this certainly
is more complicate than your average CGI problem (the modules need
to play well together). it doesn't run through your server because
all of the error stuff comes out first. to get around this you
might have to live without importing CGI.pm's functions into your
main:: symbol table.
% more url_test.pl
#!/usr/bin/perl -w
use CGI qw(:standard :html2);
use URI::URL;
$url = new URI::URL 'http://computerdog.com';
print "Status: 204\n\n";
__END__
% perl -cw url_test.pl
Prototype mismatch: sub main::url vs ($;$) at
/usr/local/lib/perl5/Exporter.pm line 155
Exporter::export('URI::URL', 'main') called at /usr/local/lib/perl5/Expo
rter.pm line 171
Exporter::import('URI::URL') called at url_test.pl line 4
main::BEGIN() called at /usr/local/lib/perl5/site_perl/URI/URL.pm line 0
eval {...} called at /usr/local/lib/perl5/site_perl/URI/URL.pm line 0
url_test.pl syntax OK
you could also send along bug reports to the authors of these modules to
tell them about the problems you ran into. good luck :)
--
brian d foy <com...@computerdog.com>
NY.pm - New York Perl M((o|u)ngers|aniacs)* <URL:http://ny.pm.org/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>