Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing an FTP site

Status
Not open for further replies.

PJYelton

Programmer
Jan 29, 2003
19
US
Relative beginner to Perl and had a quick question about how I can get my script to access an FTP site.

Say I have an ftp site called "ftp://srvftp.ggg.com/cas" with username "BOB" and password "password", how could I access this folder and copy all files to a directory of my choosing on my computer? Also, vice versa, how would I place files on my computer into this ftp folder?

Any sample code or a link to a tutorial would be greatly appreciated. Thanks!
 
Yes, look into Net::FTP it's a core module so it should already be installed with your current perl installation. Pretty easy to use too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top