I am the beginner of Expect.I want to store the output of the process in my own array when use Expect. e.g. if I send a command to a ftp process, and I want to store it's return value into my array, such as @filelist. How can I? If I use expect(), the result is just printed on the STDOUT. Thanks a lot.