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.
In reply to Re: capturing and parsing multiline output
by ikegami
in thread capturing and parsing multiline output
by ScooterTrash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |