#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    1
    Rep Power
    0

    Net::FTP passive list


    I'm trying to get passive listing with the following:

    $src->pasv();
    @list = $src->list();
    foreach $line (@list) {
    print "$line\n";
    }

    However, all I get is a '1', which by documentation holds true. How on earth do I connect to the passive port, or *should* Net::FTP do this for me?

    J
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    The Emerald City
    Posts
    289
    Rep Power
    13
    Try using ls() instead of list().
    Code:
    my @list = $src->ls();
    jaa

IMN logo majestic logo threadwatch logo seochat tools logo