我有以下場景,我需要模擬具有多個包的模塊中的子例程。 我的模塊(moddemo.pm) package A;
sub helloa
{
print "Hello, Im in demomod module of package A\n";
return 1;
}
package B;
sub hellob
{
print "Hello, Im in demo
我必須爲我的項目使用apache創建go遠程導入服務器,並嘗試爲處理程序創建perl模塊,以便從用戶獲取請求。 Perl的模塊(RemoteImport.pm)是顯示在下面: sub handler{
my $r = shift;
# check if request is from "go"
return Apache2::Const::DECLINED if (
我試圖通過perl獲取d請求。但即時得到以下錯誤: #!/usr/bin/perl
use lib "/usr/packages/perl/perl-5.16.3/lib/5.16.3";
use strict;
use warnings;
use LWP::UserAgent;
use JSON;
use MIME::Base64;
my $url = 'https://exam