Subject: | $t->open() should die if already opened |
"$t->open;" should die if the connection is already opened.
Here is a trap where that error should be triggered:
my $t = Net::Telnet->new(Host => '127.1');
$t->open;
->new already opened the connection (but this is not documented), and
->open does it again but this is a problem with Telnet servers that
support only one connection at a time.
--
Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/