Jesse Ahrens wrote:
>
> The gethostbyname() function returns 5 variables, the last on addrs is an
> array. How do I specify the function to only return that array rather than
> the 4 strings and 1 array?
(undef,undef,undef,undef,@addrs) = gethostbyname( ... );
# OR
@addrs = (gethostbyname( ..
On Thu, 7 Feb 2002, Jesse Ahrens wrote:
> The gethostbyname() function returns 5 variables, the last on addrs is an
> array. How do I specify the function to only return that array rather than
> the 4 strings and 1 array?
gethostbyname() returns a list. You can coerce that list to become an
arr