CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Select Files and Upload Via FTP


New User

Apr 8, 2013, 11:57 AM

Post #1 of 2 (507 views)
Select Files and Upload Via FTP Can't Post

I apologize in advance for my lack of knowledge. I am just now starting to dabble with Perl. I have been tasked with creating a perl script.

What I need to be able to do is query a directory and select any files that were created yesterday or today. Any files older than yesterday we don't care about. I then need to take all of those files and upload them via FTP.

I am thinking I am going to utilize the Net::FTP module and possibly the File::Find. Would I utilize mtime to correlate file creation times?

Any basic layout or assistance with this project would be great.

Veteran / Moderator

Apr 8, 2013, 3:55 PM

Post #2 of 2 (499 views)
Re: [bhamacher] Select Files and Upload Via FTP [In reply to] Can't Post

You might look at the glob function to list all files into a list (an array), and to the stat funtion to get the file age.

This might not be sufficient, but it should get you going. Please ask if you need more.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives