I am trying to fetch info from a ftp site and find out if data has changed. I have done this with no problems on html pages but cant seem to fetch the page source code from the ftp file.

When I fetch the contents of the ftp symantec anti virus info I get the unix filesystem listing instead of the html page source code. Anything different I need to do to fetch the contents of a ftp site?
use LWP::Simple; use warnings; use strict; my $url = 'ftp://ftp.symantec.com/public/english_us_canada/antivirus_d +efinitions/norton_antivirus_corp/'; my $content = get($url); print "$content\n"; #prints unix filesytem listing
Output:
total 230628 -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 987053 Jan 23 15: +53 20040123-007-i32-1.exe -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 1325979 Jan 23 15: +53 20040123-007-i32-2.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 1137726 Jan 23 15: +53 20040123-007-i32-3.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 1137848 Jan 23 15: +53 20040123-007-i32-4.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 4599122 Jan 23 15: +53 20040123-007-i32.exe -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 3109802 Jan 23 15: +53 20040123-007-o32.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 8658502 Jan 23 15: +53 20040123-007-unix.sh -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 7637800 Jan 23 15: +53 20040123-007-x86.exe -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 987048 Jan 26 18: +38 20040126-021-i32-1.exe .....more lines etc...
I was hoping to get the html page version something like this:
<HTML><HEAD><TITLE>Directory listing for /public/english_us_canada/ant +ivirus_definitions/norton_antivirus_corp/</TITLE></HEAD><BODY><h2>Cur +rent directory is /public/english_us_canada/antivirus_definitions/nor +ton_antivirus_corp/</h2><BR><HR><DD><A HREF="ftp://ftp.symantec.com:2 +1/public/english_us_canada/antivirus_definitions/"><IMG SRC="http://1 +64.214.7.246:80/-http-gw-internal-/menu.gif">&nbsp;..</A></DD><DD><A +HREF="ftp://ftp.symantec.com:21/public/english_us_canada/antivirus_de +finitions/norton_antivirus_corp/20040123-007-i32-1.exe "><IMG SRC="http://164.214.7.246:80/-http-gw-internal-/blank.gif">&nbs +p;20040123-007-i32-1.exe </A></DD><DD><A HREF="ftp://ftp.symantec.com:21/public/english_us_cana +da/antivirus_definitions/norton_antivirus_corp/20040123-007-i32-2.zip "><IMG SRC="http://164.214.7.246:80/-http-gw-internal-/binary.gif">&nb +sp;20040123-007-i32-2.zip </A></DD><DD><A HREF="ftp://ftp.symantec.com:21/public/english_us_cana +da/antivirus_definitions/norton_antivirus_corp/20040123-007-i32-3.zip ...etc.... </BODY> </HTML>

In reply to 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.