in reply to Re^3: Net::Ftp Issue
in thread Net::Ftp Issue

Hello apl, I believe my last post didn't go through. My apologies.
But can you let me know how I can print out the results of $ftp->ls or $ftp->dir?
I tried to apply the results into a scalar, but it didn't print out anything
my $result = $ftp->ls;
print $result;
Thanks!

Replies are listed 'Best First'.
Re^5: Net::Ftp Issue
by runrig (Abbot) on Feb 04, 2008 at 22:21 UTC
    $ftp->ls() returns an array or array reference depending on context. You should be getting an array reference they way you're calling it (and something like "ARRAY(0x401fa298)" the way you're printing it). If that's the problem then you can print "$_\n" for $ftp->ls(). If you're really getting nothing, then you have a different problem.