Re: Passing arrays of strings with backslashes as parameters

"Dana Hudes" <[email protected]> Mon, 7 Feb 2011 13:53:22 +0000
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <1100625977-1297086906-cardhu_decombobulator_blackberry.rim.net-400057955-@bda670.bisx.prod.on.blackberry>
When you say "control characters" do you mean octal escaped sequences lilke \003 or do you mean you have a string with an ASCII 003 embedded in it? You should use former not latter. 

------Original Message------
From: Florian Weimer
To: [email protected]
Cc: Tim Landscheidt
Cc: [email protected]
Sent: Feb 7, 2011 4:35 AM
Subject: Re: Passing arrays of strings with backslashes as parameters

* Dana Hudes:

> Use the quotemeta function in Perl 

quotemeta gives incorrect results for control characters.

-- 
Florian Weimer                <[email protected]>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99


Sent from my BlackBerry® smartphone with Nextel Direct Connect