in reply to Escaping MySQL password

I think you'll find that if you develop scripts with -w and use strict then perl will do its best to tell you what you're doing wrong.

In this case, I'm guessing that it'll complain about an unescaped '@' in a double-quoted string.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: Escaping MySQL password
by THRAK (Monk) on Mar 26, 2001 at 18:39 UTC
    I am using strict and -w, I alway do. Perl doesn't complain because it's just reading what it found in the file. This isn't the exact code, but just a brief pseudo-code to illustrate the problem. $_ is actually a line as within a while loop from a file read. I haven't tried some of the suggestions above, but I will give it a go and see what happens.

    Thanks - THRAK