Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Escaping MySQL password

by kilinrax (Deacon)
on Mar 26, 2001 at 18:17 UTC ( [id://67192]=note: print w/replies, xml ) Need Help??


in reply to Escaping MySQL password

The problem with the specific snippet you quote here is that double-quoting the string leads it being interpolated, thus;
$_ = "host|db_name|user|some@thing";
will result in $_ containing `host|db_name|user|some`, at the array `@thing` is undefined at this point in the code.
Try using single quotes instead.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://67192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found