in reply to Re^2: Need help in while entering password
in thread Need help in while entering password

As the others said, you can't put @ or $ into dobule quotes. Just change it to my $password1 = 'Case@123';

Replies are listed 'Best First'.
Re^4: Need help in while entering password
by anandooty (Initiate) on Aug 19, 2013 at 12:52 UTC

    Thanks for reply. I have tried with single quote but it didn't help. One more thing I am running this script in windows environment'

      What does not work? What does your print "@trans_file\n"; line output? Does it look correct? Can you paste it into the command-prompt and run it? Does it work there? If it doesn't work, what's wrong with it?