in reply to Re^3: Passing Password through Perl Scriptin thread Passing Password through Perl Script
That, or root privileges. (su asks no password if started as root.) But ssh is a good idea, and so would be a properly configured sudo.