D:\web\soft\htool\perl2exe>perl2exe -o 22.exe 22.pl
Perl2Exe V8.80 Copyright (c) 1997-2006 IndigoSTAR Software
Registered to n3t:n3t:20090718, ENT version
Converting '22.pl' to 22.exe
D:\web\soft\htool\perl2exe>22.exe
Bareword "Internals::inc_sub_generation" not allowed while "strict subs" in use
at PERL2EXE_STORAGE/constant.pm line 112.
Compilation failed in require at PERL2EXE_STORAGE/Time/Local.pm line 28.
BEGIN failed--compilation aborted at PERL2EXE_STORAGE/Time/Local.pm line 28.
Compilation failed in require at PERL2EXE_STORAGE/HTTP/Date.pm line 12.
Compilation failed in require at PERL2EXE_STORAGE/LWP/UserAgent.pm line 14.
BEGIN failed--compilation aborted at PERL2EXE_STORAGE/LWP/UserAgent.pm line 14.
Compilation failed in require at PERL2EXE_STORAGE/LWP.pm line 10.
Compilation failed in require at D:\web\soft\htool\perl2exe\22.exe line 4.
BEGIN failed--compilation aborted at D:\web\soft\htool\perl2exe\22.exe line 4.
D:\web\soft\htool\perl2exe>
代码如下:
#!/usr/bin/perl
use strict;
use LWP;
use Crypt::SSLeay;
use HTTP::Cookies;
use HTTP::Request::Common qw(POST);
my $user;
my $pass;
my $count;
&usage if @ARGV!=2;
my $openfile=$ARGV[0];
my $savefile=$ARGV[1];
my $ua=new LWP::UserAgent;
$ua->agent('Mozilla/5.0');
$ua->cookie_jar(new HTTP::Cookies);
sub login{
my $test1=$ua->request(POST 'https://logins.baidu.com/Mail-bin/login.cgi',