in reply to Re^3: @addrs = (gethostbyname('www.yahoo.com'))[4..-1] ?
in thread @addrs = (gethostbyname('www.yahoo.com'))[4..-1] ?

The new gethostbyname copies the values from gethostbyname into an array. addr_list returns that array variable. It's what's being dereferenced (@{}). (Only one of the 4 solutions I posted copy the returned values.)