Is that declaration exactly how it is in your script?
it should be:-
my $pwd = '(a+sdf!gh';
to be technical, I should say that what you describe as 'escaping' is actually substitution though, in this case, the substitution was used to turn ; into \;
I'm not being picky. I think it's a good time to try to get into the way of differentiating between what something really is as opposed to what it is used for. what something is, is constant. but it may have many applications.
How are you trying to pass the variable to the second script? please post your code so we can get you a quicker response, with fewer questions.
"The day you stop learning is the day you become obsolete"! - my late Dad.
Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link