in reply to Automatic IP address Generation

It sounds like you are looking for a Windows DHCP server that can handle reservations.

On the perl side, if you want to examine IP addresses, subnets etc, I recommend a module like NetAddr::IP.

     Have you been high today? I see the nuns are gay! My brother yelled to me...I love you inside Ed - Benny Lava, by Buffalax