note
TravisC
<p>
Thanks for your post. I guess I missed that tidbit of info. I can see it pass the 1 when I query the string. I modified my call line to the following
</p>
<code>
@array=$telnet->cmd(string => 'ls', prompt => '/=>/');
</code>
<p>
to explain the prompt tag, I found the following tidbit of info</p><p>
To run a program and gather its output, use the cmd method. Pass it the string to send; it returns the command output as one line per list element in list context, or as one long line in scalar context. It waits for the Prompt before returning.
</p><p>
my array is still coming back empty, I'm guessing I'm not passing the information via a list context, so how would I go about doing it?
Thanks again for all your help!
959817
959823