(@digOutput) = `dig -x $ipaddie +short`; The line shown above is replacing the entire @digOutput array on each assignment. Try this instead:
push @digOutput,`dig -x $ipaddie +short`;
(@digOutput) = `dig -x $ipaddie +short`; The line shown above is replacing the entire @digOutput array on each assignment. Try this instead:
push @digOutput,`dig -x $ipaddie +short`;