require "IPsort.pl"; # assuming that's where you put it @IPs = IPsort(qw( 12.43.12.65 48.23.6.1 4.1.64.23 www.bergen.org 84394239 ));