in reply to Re: Need help with badwords routine
in thread Need help with badwords routine

Darn, no edit facility.

Anyway, amend

open(BADWORDS,"$badword_file");
to
open(BADWORDS,"<","$badword_file") or die "Unable to open badword_ +file: $! \n";
or similar