in reply to Need help in while entering password
/me nods vigorously ...
I’d also bet my last dollar that you are using double quotes ... that is to say, doing something in some way that causes Perl to interpolate the string’s content. (It looks for what it thinks are “variables” in the string, and substitutes them.) Post an excerpt of your code and we can probably show you the problem immediately ... and what I am saying will be much more clear then.