>>967でやって、KENTの文法チェッカー使ったら [Thu Feb 28 18:54:48 2008] new.cgi: Global symbol "$cgi" requires explicit package name at new.cgi line 6. [Thu Feb 28 18:54:48 2008] new.cgi: Global symbol "$cgi" requires explicit package name at new.cgi line 7. [Thu Feb 28 18:54:48 2008] new.cgi: Global symbol "@test" requires explicit package name at new.cgi line 8. [Thu Feb 28 18:54:48 2008] new.cgi: Global symbol "$role" requires explicit package name at new.cgi line 9. [Thu Feb 28 18:54:48 2008] new.cgi: Global symbol "@test" requires explicit package name at new.cgi line 10. [Thu Feb 28 18:54:48 2008] new.cgi: Global symbol "$role" requires explicit package name at new.cgi line 10. [Thu Feb 28 18:54:48 2008] new.cgi: new.cgi had compilation errors. Content-type: text/html
Software error: Global symbol "$cgi" requires explicit package name at new.cgi line 6. Global symbol "$cgi" requires explicit package name at new.cgi line 7. Global symbol "@test" requires explicit package name at new.cgi line 8. Global symbol "$role" requires explicit package name at new.cgi line 9. Global symbol "@test" requires explicit package name at new.cgi line 10. Global symbol "$role" requires explicit package name at new.cgi line 10. new.cgi had compilation errors. こんなのになってしまいました
>>975 #!/usr/local/bin/perl use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = new CGI; my @test = ($cgi->param('f'),$cgi->param('id')); my $role = int(rand(1)*2); print $cgi->header,$cgi->start_html(-title=>"test"),$cgi->p($test[$role]),$cgi->end_html;
[error] Uncaught exception from user code:, referer: http://localhost:8008/ [error] \tinstall_driver(mysql) failed: Can't load 'C:/usr/local/site/lib/auto/DBD/mysql/mysql.dll' for module DBD::mysql: load_file:\x8ew\x92\xe8\x82\xb3\x82\xea\x82\xbd\x83\x82\x83W\x83\x85\x81[\x83\x8b\x82\xaa\x8c\xa9\x82\xc2\x82\xa9\ x82\xe8\x82\xdc\x82\xb9\x82\xf1\x81B at C:/usr/local/lib/DynaLoader.pm line 201., referer: http://localhost:8008/ [error] at (eval 20) line 3, referer: http://localhost:8008/ [error] Compilation failed in require at (eval 20) line 3., referer: http://localhost:8008/ [error] Perhaps a required shared library or dll isn't installed where expected, referer: http://localhost:8008/ [error] at lib/Hoge.pm line 116, referer: http://localhost:8008/ [error] at C:/usr/local/site/lib/DBI.pm line 772, referer: http://localhost:8008/ [error] \tDBI::install_driver('DBI', 'mysql') called at C:/usr/local/site/lib/DBI.pm line 618, referer: http://localhost:8008/ [error] \tDBI::connect('DBI', 'DBI:mysql:database=hogedb;host=localhost', 'user', 'pass') called at lib/Hoge.pm line 116, referer: http://localhost:8008/