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;
Try using single quotes instead.
will result in $_ containing `host|db_name|user|some`, at the array `@thing` is undefined at this point in the code.$_ = "host|db_name|user|some@thing";
Try using single quotes instead.
In Section
Seekers of Perl Wisdom