select * from description_table where description like '%Robert Jr.%'Update: Or even, since you want an EXACT match:
select * from description_table where description = 'Robert Jr.'
select * from description_table where description column = 'My name is Robert Jr.'
SELECT * FROM description_table
WHERE description_column LIKE '%Robert Jr%';
Rather than working around the problem in Perl, your time would be better spent getting your SQL to return the correct data.
You don't say which database system you are using, but I think you want something like:
select * from description_table where description_column like '%Robert Jr.%';
To be honest, I'm surprised that your current SQL even compiles. I assume it's preprocessed in some way before it's sent to the database.
Note: Of course select * is almost always bad practice - you should replace * with the list of columns that you're interested in.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
perlmonks.org content © perlmonks.org and Anonymous Monk, davorg, Joost, marto, McDarren
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03