Re: New Perl 6 Advent Calendar: call for ideas

2010-11-07 Thread Leon Timmermans
2010/11/6 Tadeusz Sośnierz : > As I accidentally volunteered for managing a list of topics and writers > for this year's Advent Calendar [1], I started to collect some ideas of > things it'd be nice to write about. There's a gist [2] with the list of > things from the top of my head. If you have an

Re: questions about array references and captures

2010-07-30 Thread Leon Timmermans
On Fri, Jul 30, 2010 at 6:21 PM, R. Dresens wrote: > Yes, but aren't captures somehow replacements for references in > general... and therefore also array references? The reason why I > assume that is that I (wrongly?) expected a "real" 'Array()' when I > used the `\` prefix in an expression such

Re: questions about array references and captures

2010-07-30 Thread Leon Timmermans
On Thu, Jul 29, 2010 at 8:30 PM, R. Dresens wrote: > And what about this?... > >    my $x = [3, 4]; my @y = 1, 2, |$x, 5, 6; say @y.perl; > > ...I actually expected `[1, 2, 3, 4, 5, 6]`, since I was under the > impression that the '|' was some kind of "flatten" or > "interpolation" operator. > >

Re: Something wrong with str.reverse

2010-06-22 Thread Leon Timmermans
On Mon, Jun 21, 2010 at 3:37 PM, Patrick R. Michaud wrote: > On Mon, Jun 21, 2010 at 09:47:37AM +0100, Smylers wrote: > > On the other hand, many of our other list-y methods also work on > scalars (treating them as a list of 1 element -- essentially a no-op): > .join, .sort, .any, .all, .rotate, .

Re: How to speed up a grammar

2009-06-07 Thread Leon Timmermans
On Sun, Jun 7, 2009 at 1:44 AM, Minimiscience wrote: > > This is just a wild, uneducated, possibly delusional guess, but I don't > think that vertical bar before the '/>' should be there.  I think it might > be causing the grammar engine to check whether it can omit the ending of > each tag and att

Re: the file slurping is not working

2009-06-05 Thread Leon Timmermans
> > Then why is it that .get works fine for $*IN? > > while $*IN.get -> $line { >        say $line > } > Because you're using a while loop instead of a for loop ;-) Leon

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-01 Thread Leon Timmermans
I can't help wondering "why does pid_file_handler need to be split up in the first place?" Why wouldn't it be possible to simply call pid_file_handler after become_daemon? Regards, Leon Timmermans On Thu, Jan 1, 2009 at 10:34 PM, Geoffrey Broadwell wrote: > In t

Re: Compile with ftree-parallelize-loops?

2008-11-29 Thread Leon Timmermans
This is a list for users of the Perl 6 programming language. You're in the wrong place. I'd guess you should ask at the gentoo-perl mailing list. Regards, Leon Timmermans On Sat, Nov 29, 2008 at 6:16 PM, Ranguvar Foeseeker <[EMAIL PROTECTED]> wrote: > Hello, > >

Re: the CGI.pm in Perl 6

2006-09-13 Thread Leon Timmermans
Actually, I used them a few times. I agree the model used for html generation is inadequate for most any serious usage. However, if you need to dynamicaly generate forms CGI.pm is unmatched. A modernized equavalent for them would still be very usefull IMHO. Though I agree it might be better put in