in reply to Hiding passwords in scripts...

Another option is to create a new user, chown the script to that user, chmod the perl script to 0700, and use something like sudo or super to run the script as that uid.

This is perhaps not a great solution if the script needs to create or read files owned by the person invoking it.