in reply to Turning foreach into map?
FYI, I would have written that as so:
sub links { my $url = shift; return map { "$url/$_\n" } @_; } [download]