-----Original Message-----
From: Linux Expert [mailto:linuxexper...@gmail.com] 
Sent: Wednesday, April 21, 2010 4:28 PM
To: beginners@perl.org
Subject: Re: Using backtick operator output and feeding it into array

 (@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`;


[LE] Thanks Linux Expert, that is exactly what I was looking for.  I had
tried the push method earlier, but was unable to get it working.
Obviously I wasn't doing it correctly.  Thank you for your help!.

Lonnie 



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to