How to close TELNET Connection

Hi,
I have logged into a system using Telnet and iam unable to close the connection to connect to the next system using arrays.
Iam getting error "Connection Timed Out"

Iam using net::Telnet module.
Please suggest..

Use the close method.

$tcon->close;

Where $tcon is your Net::Telnet object. Net::Telnet - interact with TELNET port or other TCP ports - search.cpan.org