You are getting a directory listing because that is what you are asking for. (the end of your path is a directory, not a file)

my $url = 'ftp://ftp.symantec.com/public/english_us_canada/antivirus_d +efinitions/norton_antivirus_corp/';
You will most likely not be able to get the HTML page you seek, as it seems to be a dynamically generated directory listing by either the ftp server or your browser (I dont know what kind of FTP server symantec uses, and what OS and browser version you used to get that HTML with so I couldnt really say, although I am leaning towards Windows and IE which means it was your browser is generating it). (Notice the TITLE)
<TITLE>Directory listing for /public/english_us_canada/antivirus_defin +itions/norton_antivirus_corp/</TITLE>
Just changing ftp:// to http://, I suspect would not work, since the ftp.symantec.com is likely not going to respond to HTTP requests, and my (strong) suspicions are that the your browser is generating the HTML.

You should try Net::FTP and check modification dates on the files you are wondering about. Since I don't know the criteria you want to use to test how old or new these files are, I can't help you there, but you should be able to find plenty of date comparison and manipulation modules on CPAN which will surely suit your needs.

-stvn

In reply to Re: fetching ftp site info by stvn
in thread fetching ftp site info by Anonymous Monk

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.