You could use Perl to modify the registry -- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip seems to be the one of interest -- but the change probably won't occur until you reinitialize the network adapter or the TCP/IP stack, and I don't know how to do that, from Perl or otherwise. A reboot will do the trick.