tsk1979 has asked for the wisdom of the Perl Monks concerning the following question:
I also took the example from cpan where I do$t->cmd("cd $repositery/$arglist[$i]"); @uname_string = $t->cmd("uname -a"); print "We got the uname @uname_string\n"; The array @uname_string has nothing. However if I do a print $t->cmd("uname -a"); it prints the uname I also tried ($uname_string) = $t->cmd("uname -a"); @uname_string = $t->cmd('uname -a');
but when I do print @uname_string, I get nothing. any ideas?@uname_string = $t->cmd("who");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: net::telnet not behaving as expected
by wazoox (Prior) on Mar 22, 2006 at 14:03 UTC | |
by tsk1979 (Scribe) on Mar 22, 2006 at 17:05 UTC | |
by wazoox (Prior) on Mar 22, 2006 at 21:17 UTC | |
by tsk1979 (Scribe) on Mar 23, 2006 at 06:18 UTC |