如何加载 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" ;