如何加載NetAddr :: IP庫?我在科莫多編輯中得到紅色波浪下劃線。當我嘗試加載NetAddr :: IP庫時,爲什麼我會在Komodo Edit中獲得紅色波浪下劃線?
#!/usr/bin/perl -w
use strict;
use warnings;
use CGI;
use NetAddr::IP;
# ~~~~~~~~~~~~~~
my $page = new CGI;
print $page->header;
my $ipaddress = $page->param("ip");
my $ip = NetAddr::IP->new($ipaddress);
print "The address is ", $ip->addr, " with mask ", $ip->mask, "\n" ;
是它執行?或者你剛剛得到一條線? –
如果從shell /控制檯運行'perl -MNetAddr :: IP -e 1'會發生什麼? – chrsblck
@HunterMcMillen它不是正在執行 –