in reply to Re^4: Open directory - Different Server
in thread Open directory - Different Server
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>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Open directory - Different Server
by Anonymous Monk on Feb 23, 2006 at 13:03 UTC |