--- [EMAIL PROTECTED] wrote:
> Hello all.
>
> I'm trying to return the "ls" method from Net::FTP
> to an array like so:
> @myarray = $FTP->ls() ;
>
> foreach (@myarray) {
> print "$_\n";
> }
>
> However, I'm getting in return the following :
> ARRAY(0x2046a1a0)
Try print "@{$_}\n";
=
Ant
[EMAIL PROTECTED] wrote:
> Hello all.
>
> I'm trying to return the "ls" method from Net::FTP to an array like
> so: @myarray = $FTP->ls() ;
Change @myarray to $myarray
>
> foreach (@myarray) {
@{$myarray} for @myarray
> print "$_\n";
> }
>
> However, I'm getting in return the fo
Hello all.
I'm trying to return the "ls" method from Net::FTP to an array like so:
@myarray = $FTP->ls() ;
foreach (@myarray) {
print "$_\n";
}
However, I'm getting in return the following :
ARRAY(0x2046a1a0)
Can someone point out the problem here ?
TEV