in reply to Re: Deleting values from string using array
in thread Deleting values from string using array

Shorter version
@array = qw( is an to for from); @strs =("is that true","this is from presentation","to create"); print "\n---- INPUT ----\n"; print join("\n",@strs); $subs=join("|",@array); map{s/\b$subs\b//g} @strs; print"\n---- OUTPUT ----\n"; print join("\n",@strs);