in reply to Re: Net::SFTP listing problem
in thread Net::SFTP listing problem

How can I make it  return $long instead of  return @long. I call the $long variable in another sub

Replies are listed 'Best First'.
Re^3: Net::SFTP listing problem
by runrig (Abbot) on Oct 05, 2011 at 14:53 UTC
    my $long = [ map $_->{longname}, @$ls ]; print Dumper($long);
Re^3: Net::SFTP listing problem
by sunnyfedora99 (Novice) on Oct 05, 2011 at 14:47 UTC

    No worries, I got it. Just wrapped it in Square brackets.

    cheers