Your code lacks proper error checking in many places.
In reply to Re: Problems with Cisco Router Perl Query by Theodore in thread Problems with Cisco Router Perl Query by Tanto4545