in reply to Re^3: Passing Password through Perl Scriptin thread Passing Password through Perl Script
Whomever has permission to read, and thus run your script... can read the password embedded in the file.
If the user has the password anyways, why not just make it automatic?