rather than grep for a pattern in the output list.@list = $t->cmd('who; echo $?'); $return_code_scalar=pop(@list);
In reply to Re^2: how to get back a exit status using Net::Telnet
by fraterm
in thread how to get back a exit status using Net::Telnet
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |