r25797 - docs/Perl6/Spec

2009-03-10 Thread pugs-commits
Author: wayland Date: 2009-03-11 04:10:30 +0100 (Wed, 11 Mar 2009) New Revision: 25797 Modified: docs/Perl6/Spec/S06-routines.pod Log: Added a cross-reference to S07-iterators, as suggested by ruoso/skids on IRC. Modified: docs/Perl6/Spec/S06-routines.pod ===

Re: .map/.reduce with larger arity

2009-03-10 Thread Daniel Ruoso
Em Seg, 2009-03-09 às 12:24 -0700, Larry Wall escreveu: > On Mon, Mar 09, 2009 at 02:40:43PM -0300, Daniel Ruoso wrote: > : ... $capture ~~ $signature ...; > : my $args_matched = @($/).elems; > : &code.(|$/); > That API still would not tell the match whether signature must match the > entire

Re: Recursive Runtime Role Reapplication Really Rebounds

2009-03-10 Thread David Green
On 2009-Mar-9, at 3:32 am, Ovid wrote: Since you cache resultsets if they've not changed, you could easily have the XML and YAML roles getting reapplied at runtime multiple times. Could this issue be mitigated with temp variables? { temp $resultset does Role::Serializable::YAML; pr

Re: r25775 - docs/Perl6/Spec

2009-03-10 Thread Larry Wall
On Tue, Mar 10, 2009 at 11:12:13AM +, Aaron Crane wrote: : pugs-comm...@feather.perl6.nl writes: : > Modified: : >docs/Perl6/Spec/S05-regex.pod : > +The result object is available in the C object via a C<< . >> lookup. : : I think I understand the reasoning behind this change. : : Howeve

Re: r25775 - docs/Perl6/Spec

2009-03-10 Thread Aaron Crane
pugs-comm...@feather.perl6.nl writes: > Modified: >docs/Perl6/Spec/S05-regex.pod > +The result object is available in the C object via a C<< . >> > lookup. I think I understand the reasoning behind this change. However, using . in particular says "boolean" to me. How about .<*> instead, wit

Re: .map/.reduce with larger arity

2009-03-10 Thread Larry Wall
On Tue, Mar 10, 2009 at 07:46:51PM +1300, Martin D Kealey wrote: : I'd like to be able to use grep, map, etc in a currying fashion. Can I do: : : my &square_list := -> $x { $x * $x }.map(); my &square_list := &map.assuming(-> $x { $x * $x}); : And if so, what is the signature of &squar

listing all files in all sub directories

2009-03-10 Thread steve
I am trying to list all files in all sub-directories and have the code below but this is listing the . directories as well as the directories themselves. I just want the full path filenames and not the individual directories out. Here is what I have #!c:/Perl/bin/Perl.exe @ARGV = qw(.) unless @AR