Problems? Is your data what you think it is? | |
PerlMonks |
Re: Representing a 32-bit integerby jettero (Monsignor) |
on May 22, 2007 at 19:48 UTC ( [id://616851]=note: print w/replies, xml ) | Need Help?? |
You want unpack, not pack, imo. Although, the document describing pack is a great deal more detailed. Also, see Socket for the inet_aton function, which is of great relevance here.
UPDATE: This has been amusing me for many minutes now (e.g. unpack("N", inet_aton("google.com"))). Thanks! -Paul
In Section
Seekers of Perl Wisdom
|
|