in reply to @addrs = (gethostbyname('www.yahoo.com'))[4..-1] ?
One way would be to do something like this:
@addrs = grep {state $i = 0; $i++ > 3 } gethostbyname('www.yahoo.com') +;
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: @addrs = (gethostbyname('www.yahoo.com'))[4..-1] ?
by ikegami (Patriarch) on Nov 04, 2010 at 00:13 UTC | |
by kcott (Archbishop) on Nov 04, 2010 at 00:17 UTC |