=?iso-8859-1?q?Jonathan=20E.=20Paton?= writes: : > : > >Damian Conway [mailto:[EMAIL PROTECTED]] wrote: : > > : > >You *could* instead consider reversing the arguments to : > all the list : > >manipulation operators: : > > : > > @result = map @data { mapping() } : > > @result = grep @data { selector() }; : > > @result = sort @data { comparison() }; : > > @result = reduce @data { combinator() }; : > > : : What about: : : $result = join @data, ""; : : It might not be a list manipulation operator, but people : are going to get awfully confused if it isn't changed to : this. Why should: : : $result = join "", @data; : : but: : : $result = map @data { "$_" };
Many methods could be done either way. All of these could likely be made to work: $result = join "", @data; $result = "".join(@data); $result = @data.join(""); $result = map { _$_ } @data; $result = @data.map { _$_ }; $result = { _$_ }.map @data; Larry