in reply to gethostbyname: What does $aliases look like?
An array of strings, I would suppose, like the system call.
Then again, Perl doesn't return an array when there's only one alias. Maybe it returns one at most?
$ perl -MData::Dumper -e'print Dumper $_ for (gethostbyname $ARGV)[ +0,1]' www.google.com $VAR1 = 'www.l.google.com'; $VAR1 = 'www.google.com';
Update: They are space-joined. From pp_sys.c:
|Replies are listed 'Best First'.|
Re^2: gethostbyname: What does $aliases look like?
by Skeeve (Parson) on Sep 14, 2009 at 07:12 UTC