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


in reply to Re: Blocking based on words in a list
in thread Blocking based on words in a list

A tangential note regarding the construct you used twice:

chomp for @blocked;
The for is unnecessary. chomp over a list will chomp every element, so you can just say:
chomp @blocked;
to get the same result.

More info at perlfunc.