>>>>> "JT" == Jag Thripp <jthr...@skytv.co.nz> writes:
JT> Hello first question, maybe one of many! it helps if you actually ASK a question. you explain your goal, show some code but say nothing about what isn't working or what errors you get or ask a question. JT> Code running on a windows machine connecting to Linux box. JT> I am trying to capture an ls\dir command into a file from an FTP JT> connection, similar to ls -lA > Ls.txt. JT> use Net::FTP; JT> use warnings; JT> use diagnostics; use strict ; JT> my $filename; JT> $ftp->ls; from the Net::FTP docs: ls ( [ DIR ] ) Get a directory listing of DIR, or the current directory. In an array context, returns a list of lines returned from the server. In a scalar context, returns a reference to a list. you call ls in a void context. did you expect the output to magically be stored somewhere? try assigning the result of the call and then printing or using that. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/