1
아래 코드는 나에게 헤더 전에 스크립트 출력의펄 CGI ::의 validate()
끝 제공 : secondcgi
을하지만 Opts::validate();
라인을 주석 때 잘 작동 . 도와 주시겠습니까? 내가이
print "Content-Type: text/html\n\n";
print "<html>";
print "<head>";
print "<title>Hello - Second CGI Program</title>";
print "</head>";
print "<body>";
print "start <br>";
Opts::validate();
print "<h2>can't see this part</h2>";
print "$result";
print "</body>";
print "</html>";
같은 후 이동하면
#!/usr/bin/perl
use CGI;
use VMware::VIRuntime;
my %opts;
Opts::add_options(%opts);
Opts::parse();
Opts::validate();
print "Content-Type: text/html\n\n";
print "<html>";
print "<head>";
print "<title>Hello - Second CGI Program</title>";
print "</head>";
print "<body>";
print "start";
Util::connect();
print "second start after connect";
&check_server;
print "<h2>Hello alsu</h2>";
print "$message";
print "</body>";
print "</html>";
내가이 선 아래 아무것도 볼 수 없습니다