in reply to grepping arrays
Looks like your substitutions are a bit too broad. You could put a regex into your if for a simple filter.
Or you can use substitutionsif (/badword/i){print "You are a naughty person...You should wash your + mouth with soap}
s/badword1//; s/badword2//; ..etc;
Time flies like an arrow, fruit flies like banannas
|
---|
In Section
Seekers of Perl Wisdom