Re: [Perl-unix-users] Net::FTP question

2004-03-18 Thread Anthony Ettinger
--- [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

RE: [Perl-unix-users] Net::FTP question

2004-03-18 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[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

[Perl-unix-users] Net::FTP question

2004-03-18 Thread vaughnte
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