in reply to Telnet responses

What's the question? Do you want to know how to get the number returned after the last command? According to the documentation, it should be something like
my (undef, $oid) = $t->waifor('/^[0-9]+$/');

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Telnet responses
by mikebailey (Novice) on Oct 19, 2023 at 18:51 UTC

    choroba, yes I know it will be an 1,2,3 or some number. But, displaying or "doing something" with that seems to be the problem. Here is the "received_data.txt"

    AT OK AT%23=1234 OK AT1122 2 ####This is the digit I need to "do something with" or Relay to a +n SNMP server later. OK