Gunnar Hjalmarsson <no*****@gunnar.cc> wrote in message news:<iR*********************@newsc.telia.net>...
...
No, he can't. The range operator does not permit that the left value
is greater than the right value.
The splice() function is an option, though:
my @ret = gethostbyname 'example.com';
my @ip = map { join '.', unpack 'C4', $_ } splice @ret, 4;
That's my problem exactly.. originally I thought to simply use
[4..-1], but that produced no results (no warning either though)..
Actually, if I'm to use a temp variable for this, I won't need
splice(), e.g.
@a = gethostbyname("www.microsoft.com");
print join "\n", map { join ".", unpack "C4", $_ } @a[4..$#a];
Anyway, thanks to all those who took time to look at my issue..