Connect to the SFTP server of yours with a regular interactive client, read the documentation of it and then check how this could be done. Later, you can check additional methods from Net::SFTP that could help you.
Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill