If you are using DBI, there is a 

        $dbh->quote()

method that will do what you want.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, November 07, 2005 11:34 AM
To: beginners@perl.org
Subject: Regex

I have a field that looks like this:

'modprobe: modprobe: Can't locate module char-major-10-134'

I need to add a single quote so that it looks like this:

'modprobe: modprobe: Can''t locate module char-major-10-134'

But I have no idea how to go about doing that, can I get an example?

Thanks


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to