I'm not a perl programmer, and my example would cause laughter for everyone else and embarrassment for me. :)

Here's the output from the untested code:

Argument "BmM-oM-5" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "CM-c\ng" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "M-Q\nM-Ri" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "M-QC^CM-B" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "BM-o^CI" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "M-QC\0M-2" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "M-Q\nM-Ri" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "M-QC^CM-L" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "M-OM-^\M-X$" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "D>Ge" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "E^AM-BJ" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
Argument "M-X^OM-\fM-^E" isn't numeric in sort at /usr/bin/ipsort line 13, <$fh> line 12.
66.109.239.181
67.227.10.103
209.10.210.105
209.67.3.194
66.239.3.73
209.67.0.178
209.10.210.105
209.67.3.204
207.156.216.36
68.62.71.101
69.1.194.74
216.15.140.133

Thanks for everyone's time.


In reply to Re: Re: ip sorting by Anonymous Monk
in thread ip sorting by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.