On Fri, Jul 11, 2008 at 09:01:09AM -0500, Patrick R. Michaud wrote: : I'm not entirely certain if any of the following : examples with adverbial blocks would also work. I'm guessing : they do, but could use confirmation. : : sort @a, :{ $^a <=> $^b }; : sort @a :{ $^a <=> $^b }; : sort :{ $^a <=> $^b }, @a; : @a.sort: :{ $^a <=> $^b };
I think they all work, but the second one is fragile and will break if you replace @a with an expression containing an operator that the adverb would attach itself to instead of to the sort, since adverbs in infix position always pick the most recent operator (that isn't hidden inside brackets or parens). Larry