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.. | [reply] [d/l] |
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.
| [reply] [d/l] |