title: Perl and hosts file mapping question?
body: <p>I have a <code>hosts</code> file that looks like this:</p>
  
  <pre>10.10.10.1 myserver1 myserver1alias
  
  10.10.10.2 myserver2 myserver2alias</pre>
  
  <p>I'm looking for a way using perl to pass in an argument of <code>myserver1</code> and have it return <code>myserver1alias</code>, likewise if I pass in <code>myserver2</code> it should return <code>myserver2alias</code>. Any suggestions?</p>