> I'm looking for a Perl6 way to say that oft-repeated, oft-chained > two-line snippet up there without declaring the temporary variable. > Using C<given> or C<when>, maybe?
I think you're going to have to have some holding space, but $_ should do it and still avoid the predeclaration. My P6 syntax is still weak, though. Maybe given big_calc() { return $_ if $_ } __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://platinum.yahoo.com