in reply to Re^2: script outputs nothing/nada
in thread script outputs nothing/nada
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: script outputs nothing/nada
by bluethundr (Pilgrim) on Jun 06, 2010 at 23:42 UTC |