473,387 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

the string function quote??

Hi,

I'm learing perl and I've just come up with the following statement from a some script:
$content = $dbh->quote($content);

I've read through Blair Ireland's tutorial on perl MySQL functions for the meaning of this quote string function but I'm still not getting it.


Would someone please explain to me in simple language, exactly what the quote() does??
Feb 1 '12 #1
2 1458
Rabbit
12,516 Expert Mod 8TB
It takes a string, puts single quotes around it, and escapes all special characters in the string.
Feb 1 '12 #2
chorny
80 Expert
Look also into DBI documentation: http://search.cpan.org/~timb/DBI-1.617/DBI.pm#quote
Feb 1 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Eric Theil | last post by:
I'm at my wit's end with this one. Within an xsl:if test, I'm not able to get 2 variables to properly evaluate if one of them is wrapped within a string function. <!-- This works --> <xsl:if...
5
by: JR | last post by:
I am having trouble remembering a string function that I used a while back in VB. I don't know if it was .NET specific. The function either searched a string or replaced a substring in a string...
2
by: othellomy | last post by:
select left('Hello World /Ok',charindex('/','Hello World /Ok')-1) Hello World That works fine. However I got an error message: select left('Hello World Ok',charindex('/','Hello World Ok')-1)...
2
by: rn5a | last post by:
All the String functions like 'Len', 'Left', 'Right', 'Mid' etc. that are available in ASP are supported by ASP.NET as well except for the string function 'String'. The 'String' function takes...
14
by: nishit.gupta | last post by:
Is their any single fuction available in C++ that can determine that a string contains a numeric value. The value cabn be in hex, int, float. i.e. "1256" , "123.566" , "0xffff" , It can also...
5
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
I need a function (or code) that will physically change the words in a text string to make the first word be last, second word next to last, etc. but maintain the same position of the letters in...
10
by: silverburgh.meryl | last post by:
Hi, Is there a string function to trim all non-ascii characters out of a string? Let say I have a string in python (which is utf8 encoded), is there a python function which I can convert that...
12
by: PW | last post by:
Hi, How would I get these values in Access 2003 from "cashregister05012008.xls": cashregister 05012008 Thanks,
121
by: swengineer001 | last post by:
Just looking for a few eyes on this code other than my own. void TrimCString(char *str) { // Trim whitespace from beginning: size_t i = 0; size_t j; while(isspace(str)) {
7
by: jacklisp | last post by:
I have wrote a small function but got the error function: /*< squeeze */ void squeeze(char s1,char s2) { int de_s ; int i,j,k; for(i = 0;s2 !='\0';++i) {
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.