Escape characters handled differently between mysql and DBD: mysql ???
"David Jacopille" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <BE0AFA56.E50%[email protected]> |
I've used INSERT to load the following string exactly as shown with the double backslashes: (.+)\\.[0-9A-Z]+(\\.pdf)$ When issuing a SELECT statement directly in mysql from a terminal window I get exactly the regular expression I want and would expect: (.+)\.[0-9A-Z]+(\.pdf)$ When issuing the same select statement in a Perl script using DBI and DBD::mysql I get the double backslash plus an extra bonus escape character for the $. (.+)\\.[0-9A-Z]+(\\.pdf)\$ I'm sure this is literally what's stored in the database and the mysql application is applying a filter to deal with the escape characters that the Perl DBI is not. Of course I could build a regular expression to fix this regular expression - but does anyone know how to just get the Perl DBI to handle the escape characters with a bit more savvy? Thanks, David Jacopille "MFS Relay Service" made the following annotations on 01/12/2005 04:07:50 PM ------------------------------------------------------------------------------ This email communication and any attachments may contain proprietary, confidential, or privileged information. If you are not the intended recipient, you are hereby notified that you have received this email in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. The sender does not waive confidentiality or any privilege by mistransmission. If you have received this email in error, please notify the sender immediately, delete this email, and destroy all copies and any attachments. ============================================================================== -- MySQL Perl Mailing List For list archives: http://lists.mysql.com/perl To unsubscribe: http://lists.mysql.com/[email protected]