Thread Thread zum Heulen 2.0 (170 answers)
Opened by GwenDragon at 2009-09-09 17:30

rosti
 2011-06-20 14:26
#149788 #149788
User since
2011-03-19
3470 Artikel
BenutzerIn
[Homepage]
user image
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);
}
Antworten mit Zitat

View full thread Thread zum Heulen 2.0