title: How can I sort a list of IP-addresses in Perl?
body: <p>I have a bunch of IP-addresses stored in an array, e.g.:</p>
  
  <pre><code>my @ip = qw(10.11.1.1 10.100.1.1 ...);
  </code></pre>
  
  <p>How can I sort the addresses in the ascending order? I've tried a simple <code>sort</code> but it failed, of course.</p>