in reply to Turning foreach into map?

Did it work? If it didn't, what did you see that you think you shouldn't have? In other words, it looks good, but YMMV.

FYI, I would have written that as so:

sub links { my $url = shift; return map { "$url/$_\n" } @_; }