Convert Integer To IP Address

2010-05-26

Of an acquaintance, I got the assignment to write a function that converts an integer to an IP address. An IP address is really just another way to represent an integer. Below is an example of the solution I came up to. This code is written in Perl.