ls ( DIR )So your code should read
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.
# Retrieve a recursive directory listing @ls = $ftp->ls(); foreach $file ( @ls ) { print "$file<br>"; }
In reply to Re^5: Open directory - Different Server
by holli
in thread Open directory - Different Server
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |