http://www.perlmonks.org?node_id=616860


in reply to Re: Representing a 32-bit integer
in thread Representing a 32-bit integer

Or unpack "N", pack "C4", split /\./, $IPaddr