Hi, I'm still pretty much a newbie in Perl. All I've done so far is automate my site using DBI and CGI. I'd like to learn a few more things at once, and I have a project idea that I think will go nicely with Perl.

I want to write a script that will log on to a specified website directory, and download all the files in that directory of a user specified type. Of course this will only work on websites that allow you to view those directories anyways. My main reason for wanting a script like this is to automate the dl of image files. So if a gaming site or something has a directory full of screen shots, you can just fire up your script, and have it download them all for you, instead of having to go to the directory, and manually save each one.

Can you guys point me in the right direction as to what modules are best suited for this? I was looking into IO::Socket::INET, IO::File, File::Listing, and Net::FTP for various options. I'm not familiar with these much at all, and would like some input on which ones would be better suited for the task, etc. I'd also like to have some kind of file xfer status displayed to the user, either in the console, or on a webpage if I make it web-based.

Thank you very much for any information you can give.

In reply to Learning Project by 50-50

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.