Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
I wrote a small script where I use
and since I don't have any host having more than 2 names (i.e. 1 alias) I don't know what $aliases would look like, had the machine 3 or more names.($name, $aliases, $addrtype, $length, @addrs) = gethostbyname $host;
Are the names in a string? Space seperated? Komma seperated?
Or wil $aliases be a reference to an array?
Can someone please enlighten me?
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: gethostbyname: What does $aliases look like?
by tomfahle (Priest) on Sep 14, 2009 at 07:32 UTC | |
Re: gethostbyname: What does $aliases look like?
by ikegami (Patriarch) on Sep 14, 2009 at 06:58 UTC | |
by Skeeve (Parson) on Sep 14, 2009 at 07:12 UTC |
Back to
Seekers of Perl Wisdom