use

$*dbh*->*quote*($str)

On Tue, Jul 1, 2008 at 4:59 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]>
wrote:

> Beyza wrote:
>
>> I have an array which has strings like;
>>
>> John's House
>> Bla bla;
>> etc,
>>
>> When I use them in an SQL query, perl gives an error. So, I need to
>> put escape character for every special character. Is there any quick
>> way to do it?
>>
>
>    perldoc -f quotemeta
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>

Reply via email to