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";
[download]
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.
Comment on
Re: Escaping MySQL password
Download
Code
In Section
Seekers of Perl Wisdom