http://www.perlmonks.org?node_id=302347


in reply to Re: An internet garbage filter
in thread An internet garbage filter

For anyone use this program, my suggestion is to have a big hash for banned sites, but only a much smaller array for banned sites expressed with regexp.

For example, if there are four sites you want to ban:

It is better to put them all in the hash for fixed site, instead of using regexp, unless that site has a rich variety of names. If it only has three or four different names, put them in hash.