Thread Thread zum Heulen 2.0
(170 answers)
Opened by GwenDragon at 2009-09-09 17:30 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 sub _num2ip{ my $num = shift; return join(".", unpack("CCCC", pack("N", $num))); } sub _ip2num{ my $ip = shift; unpack "N", pack("CCCC", split /\./, $ip); } |