http://www.perlmonks.org?node_id=269081


in reply to use (of) Net::FTP for updating

What about:

# Let's get a detailed directory listing... (thanks Kevin!) %listing = $ez->dir; # Note this is a hash, not an array return value.

from: CPAN Net::FTP-Common