use Socket; my $ip = inet_ntoa(pack "N", 3232236032); # 192.168.2.0