in reply to capturing and parsing multiline output

The return value of system isn't what you think it is. You need to use something else, such as backticks (qx//).

Or in this case, gethostbyname.

Replies are listed 'Best First'.
Re^2: capturing and parsing multiline output
by ScooterTrash (Novice) on Feb 24, 2009 at 17:14 UTC

    Thanks for the tips. Yes, gethostbyname() solved the initial problem and is much quicker. Using qx{ } also gave me what I was looking for on parsing multi-line output. Thanks again!