nntp said:
Subject: What does $base)->abs do?
Nothing - it is not a meaining full code fragment.
EXPR->abs
Evaluates an expression and then attempts a method call 'abs' on the
result. If the result of
I checked the document, but its statement means nothing.
The document? Which document? The document that is the documentation
from the class of the object that the expression is retunring?
I also did the test, no difference at all.
my $base = $response->base;
@output = map { $_ = url($_, $base)->abs; } @output;
my $base = $response->base;
@output = map { $_ = $base } @output;
Both act the same.
In that case, without knowing anything about the url() function (because
I don't know what module you are getting) I can make two totally
random stabs in the dark simply by guessing at the functinality.
1) Maybe you've got the arguments of url() transposed.
2) Maybe all the elements in @output were initially empty strings.
Oh and:
@foo = map { $_ = somefunction($_) } @foo;
is affected and confusing. Say instead:
$_ = somefunction($_) for @foo;
or
@foo = map { scalar somefunction($_) } @foo;
Of course scalar() can be omitted id somefunction() is a scalar function
(my terminolgy for a function that returns in a LIST context a single
element with the value of the function in a scalar context).