in reply to quotemeta and \% to insert perl code into database
Don't use quotemeta or quote or any other such thing. Use "?" placeholders. No chocolate quoting mess!
-- Chip Salzenberg, Free-Floating Agent of Chaos