You wrote:
- Original Message -
The algorithm used is the Guttman-Rosler Transform which is based on the
Schwartzian Transform. The paper describing it can be found here:
http://www.sysarch.com/perl/sort_paper.html
A better way to convert IP addresses for sorting is to use pack() and
unp
Patrick Salmon wrote:
>
> I've been working on sorting by IP Address in an output file that comprises
> field1(hostname), field2(hosttype), IP Address.
>
> Found a very elegant solution here (http://www.perlmonks.org/index.pl?node_id=88719),
> that I think I can re-write to suite my needs but am
(split/,/)[1..8,0]
this splits $_ on the , and moves the first element to the 9 position.
ie. $_ = '111,222,333,444,555,666,777,888,999,000';
will now be returned as an array (222, 333, 444, 555, 666, 777, 888,
999, 111)
notice: no matter how long the $_ is and how many , it has it only r