Perl 为什么在尝试加载NetAddress::IP库时,Komodo Edit中会出现红色波浪下划线?

Perl 为什么在尝试加载NetAddress::IP库时,Komodo Edit中会出现红色波浪下划线?,perl,syntax-highlighting,perl-module,importerror,komodoedit,Perl,Syntax Highlighting,Perl Module,Importerror,Komodoedit,如何加载NetAddress::IP库?我在Komodo编辑中得到一条红色波浪下划线 #!/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($ipadd

如何加载NetAddress::IP库?我在Komodo编辑中得到一条红色波浪下划线

#!/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-mnetadr::IP-e1
,会发生什么ececuting@chrsblck获取此“moeez.pl”不被识别为内部或外部命令,可操作的程序或批处理文件。您无法从IP中找出掩码。我正在使用Windowns和Komodo Edit。