print "Content-type: text/html\n\n"; open (netsh, "C:/WINDOWS/system32/netsh.exe dhcp server scope dump|"); foreach my $line () { print $line; } close netsh;