in reply to Including File in array

would it be possible to include the terms I wish to restrict in a file

This is trivially done with Tie::File:

$ cat banned_words pr0n hard visit $ perl use Tie::File; tie my @banned_words, 'Tie::File', 'banned_words' or die "tie: $!"; print "banned words: @banned_words\n"; untie @banned_words; __END__ banned words: pr0n hard visit

--
David Serrano