http://qs321.pair.com?node_id=522417


in reply to Running a remote passwd command.

I did a search on google and got pointed to google groups, via Perl First Response, a newsgroup thread accessible from google that suggests using the Expect module.