Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Parsing FTP ls command results

by johngg (Canon)
on Sep 13, 2007 at 12:44 UTC ( [id://638778]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://638778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-03-19 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found