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

Hi Toolic , Yes I forgot to copy paste the curly brackets. The value of $? gives me -1 . I have tried out the same command with same argument on DOS , which gives me correct zones.
if (not @zones) { if ($?) { print "Error "; } else { " zones done"; } }
So was wondering why its like that..

Replies are listed 'Best First'.
Re^3: DNScmd in perl script
by blazar (Canon) on Jul 29, 2008 at 08:20 UTC

    I personally believe, ajd335, that you made my day: we recommend all the time not to retype code to avoid such inconveniences, and appearently you have "selective" a copy-paste which will emulate the same error! Sorry for the humour, but please do not take it as personal attack and accept it as a good piece of advice to the effect of really using copy-paste.

    --
    If you can't understand the incipit, then please check the IPB Campaign.