#!/usr/bin/perl # use strict; # # my $workdir = "$ENV{HOME}/txt"; open (BADIPS), "< $workdir/bad_ips" or die "Couldn't open file: $!"; print "Can you hear me now?\n"; while (my $line = ) { chomp $line; print "add ns simpleacl bp-search-spammer DENY -srcIP $line -TTL 43200"; print "Can you hear me now?\n"; } close BADIPS;