$ip ='192.168.2.1'; $dec = unpack('N32',pack("C4", split(/\./,$ip))); print "IP:$ip equals $dec\n"; [download]
Here's a example for the curious: http://3519380377/.
-- John.