- or download this
#!/usr/bin/perl
- or download this
#!/usr/bin/perl -w
use strict;
- or download this
my $INPUT_FILE = "ipnum";
- or download this
open(INPUT_FILE);
@array = ;
close(INPUT_FILE);
- or download this
open INPUT_FILE, $INPUT_FILE
or die "Can't open $INPUT_FILE: $!";
my @array = <INPUT_FILE>;
close INPUT_FILE
or die "Can't close $INPUT_FILE: $!";
- or download this
for my $address (@array) {
my $output = `nslookup $address`;
print $output;
}