> > Please sort the IP addresses with this way could help you, > > > > @list = sort { $b <=> $a } @ip_addresses; > Wouldn't this do the same kind of sort I've been doing (aka a textual > one)?
No, I don't think so. > perl -MSocket -wle 'print for map { inet_ntoa($_) } sort map > { inet_aton($_) } <>' > 192.168.0.1 > 192.168.0.12 > 192.168.0.13 > 192.168.0.100 > 192.168.0.101 > 192.168.0.114 > 192.168.0.115 > 192.168.0.116 > 192.168.0.117 > 192.168.0.118 > 192.168.0.119 > 192.168.0.120 > 192.168.0.121 > 192.168.0.122 > 192.168.0.123 > 192.168.0.124 > 192.168.0.125 > 192.168.0.126 > 192.168.0.127 > 192.168.0.128 > 192.168.0.129 > 192.168.0.130 -- VI VI VI - The editor of the beast. - perlhacker.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>