title: How can I fix "unknown terminal type" when connecting with Perl's Net::Telnet?
body: <p>I got a problem connecting to a SUSE linux machine by Perl's <a href="http://search.cpan.org/dist/Net-Telnet" rel="noreferrer">Net::Telnet</a> module. 
  The code looks like below:</p>
  
  <pre><code>my $t = new Net::Telnet (Timeout =&gt; 20);
  $t-&gt;open($server);
  $t-&gt;input_log("telnet.log");
  $t-&gt;login($user, $pass);
  my @lines=$t-&gt;cmd($command);
  print @lines;
  </code></pre>
  
  <p>The log file looks like below:
      Welcome to SUSE Linux Enterprise Server 10 SP1 (x86_64) - Kernel 2.6.16.46-0.12-default (5).</p>
  
  <pre><code>vm-sles10u5 login: &lt;myuser&gt;
  Password: 
  Last login: Thu Feb 25 10:41:07 EST 2010 from &lt;mymachine&gt; on pts/5
  tset: unknown terminal type network
  Terminal type? 
  </code></pre>
  
  <p>Any suggestions?</p>