• About: Perl 6 hacker
Subscribe to feed Recent Actions from coke

  • mattoates commented on Reconsidering Exercise 1

    My times for the Perl 5 version for comparison:

    real 0m0.064s
    user 0m0.010s
    sys 0m0.015s

    So my Mac has a slower time for the Perl 5 code so I'd imagine the OP would have a slightly better time than 1s for the Perl 6 code running in the latest R* parrot build?

  • Timo Paulssen commented on Reconsidering Exercise 1

    Do note that you can use @*ARGS instead of providing a sub MAIN; though the latter will give you a usage message when you don't supply the max and if you write

    sub MAIN( Int $max = 1000 )
    instead, you'll even get a helpful error message if the user writes "over nine thousand" instead of a number.

    Also, for interpolating arrays into strings, you can also just write

    "My multiples are: @multiples[]".say;

    And another thing: I think "1 ..^ $max" looks prettier than "1 .. $max-1".

  • raiph commented on Exercise 1. 3s and 5s.

    In your P6 code you have this line of code:

    unless any(@multiples) $start {

    That looks like TTIAR (two terms in a row) to me (syntax error).

  • Olivier Mengué (dolmen) commented on Exercise 1. 3s and 5s.

    The code is still mangled :(

  • fibo commented on How do we know when a CORE module is deprecated?

    Come on, it's not that tragedy. On RedHat perl-CGI is already packaged.

    It is not that difficut to include instructions for those who want to port their CGI scripts.

    Something like

    sudo cpan CGI

    will do the trick ;)

    I think Perl can move on and remove from core modules.

    What it is really missing in the core, in my opinion, are IO::Socket::SSL and Plack.

    Look at Node.js core, for example

    We need https!

Subscribe to feed Responses to Comments from coke

About is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.