in reply to Re^4: Open directory - Different Server
in thread Open directory - Different Server

From the docs:
ls ( DIR )
Get a directory listing of DIR, or the current directory.
In an array context, returns a list of lines returned from the server. In a scalar context, returns a reference to a list.
So your code should read
# Retrieve a recursive directory listing @ls = $ftp->ls(); foreach $file ( @ls ) { print "$file<br>"; }


holli, /regexed monk/

Replies are listed 'Best First'.
Re^6: Open directory - Different Server
by Anonymous Monk on Feb 23, 2006 at 13:03 UTC
    Thank you, it work!