in reply to Advice: Network code experiments

You're delving deeper than I care to, geektron.
Nonetheless, I wouldn't be surprised if perusing source of Net::Telnet and Net::Telnet::Cisco might provide relevant info.
    cheers,
    ybiC