Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Escaping MySQL password

by ChOas (Curate)
on Mar 26, 2001 at 18:15 UTC ( [id://67191]=note: print w/replies, xml ) Need Help??


in reply to Escaping MySQL password

Hey

Try:
$_ = "host|db_name|user|some\@thing";

or:

$_ = 'host|db_name|user|some@thing';

In you example Perl is looking for the @thing list...
(Unless declared by you) it will be 'undef', and your
password (after the split) will look like "some"

something you won`t notice when you don't use strict and -w

So use strict, and -w

GreetZ!,
    ChOas

print "profeth still\n" if /bird|devil/;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-23 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found