in reply to Re: Parsing FTP ls command results
in thread Parsing FTP ls command results

I'm not sure how file names with spaces will be displayed by the FTP command but I would probably use the three argument form of split just to be safe. I would also use a list on the LHS rather than an array for readability.

my ($date, $time, $typeOrSize, $name) = split /\s+/, $_, 4;

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^3: Parsing FTP ls command results
by Anonymous Monk on May 04, 2009 at 00:58 UTC
    thanks to you john... your comment help me so much, thanks again!