If that's the code you're really using (it's different to your OP), try adding use warnings; after use strict;. That usage of open does something you really don't want (hint: it isn't trying to open bad_ips).open (BADIPS), "< $workdir/bad_ips" or die "Couldn't open file: $!";
Try:
open BADIPS, "<", "$workdir/bad_ips" or die "Couldn't open file: $!";
instead.
You should also check the contents of bad_ips. It could be full of newlines.
In reply to Re^3: script outputs nothing/nada
by FunkyMonk
in thread script outputs nothing/nada
by bluethundr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |