in reply to Re: DNScmd in perl script
in thread DNScmd in perl script

Hi Shmen , I forget to copy the closing bracket for the If statment the code is
$domain = "abc.com"; @zones = `dnscmd $domain /EnumZones`; if ($?) { print "Error "; } else "zones done";

Replies are listed 'Best First'.
Re^3: DNScmd in perl script
by shmem (Chancellor) on Jul 28, 2008 at 21:18 UTC
    if ($?) { print "Error "; } else "zones done";

    You are still missing curlies.