in reply to Hiding passwords in scripts...

I would say that the best scenario would be simply good security practice -

I know this isn't the answer you want, but I don't think there is another way. No matter where you store your password, you could be bitten by someone - external or internal.
$ perldoc perldoc