0

How do I load the NetAddr::IP library? I'm getting a red wavy underline in 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" ;

Komodo Edit screenshot

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
smart boy
  • 671
  • 4
  • 11
  • 24

1 Answers1

0

The module simply is not installed. Install it.

From the Stack Overflow Perl FAQ:

Community
  • 1
  • 1
daxim
  • 39,270
  • 4
  • 65
  • 132