I am looking to FTP into a server, take a list of filenames, and store them into an array, so I can eventually write them into a text file.
I am currently having an issue with the storing of the ls into a local array:
use Net::FTP; $ftp = Net::FTP->new("slawas1"); $ftp->login('username', 'password'); $ftp->cwd("/directory/path"); my @filenames=$ftp->nlst('*'); $ftp->quit; print @filenames;
When I print it out, I get the following output:
If you guys have any input that would be great.