But the main reason I am using perl is for the user/password authentication so I dont have to use expect. I already have a perl script using ftp I can easily use sftp in the same scritp If I can get sftp to work.
Thanks
Comment on Re^2: SFTP & SSH support in Red Hat AS4
Another option is the psftp program, part of the PuTTY set of utilities.
It accepts the user and passwords as arguments on the command line, though this is not very secure as other users would be able to see then just running ps.