http://www.perlmonks.org?node_id=772047


in reply to Re: Getting Involved with Perl 6 - 2009
in thread Getting Involved with Perl 6 - 2009

Why not try crafting those and posting the attempts? Others will happy point out mistakes. You can annotate the listing with pointers to the synopses or discussions of the language features.

Some of those are squarely "library" and that's gotten much less attention than the core language.

Some of those lead to very interesting discussions. E.g. "environment variables" are the default values of context variables, which have taken the place of global variables.

"Perl 6 can do some amazing things" Indeed. here is one of my efforts along the lines of what I'm suggesting (which also shows reading of standard input, according to the latest decree).

—John

  • Comment on Re^2: Getting Involved with Perl 6 - 2009

Replies are listed 'Best First'.
Re^3: Getting Involved with Perl 6 - 2009
by crumbly (Sexton) on Jun 17, 2009 at 00:15 UTC
    Why not try crafting those and posting the attempts?

    I'm not sure that answer makes sense here. If I was asking how to write something substantial, or even just something novel that requires a few lines of code, then it makes sense to ask me try things and post. But I'm just expressing a little curiosity about some rudimentary features of the language -- nearly trivial things to use as a reference point comparing how you'd do them in other languages. And also, making a thread about "Is this what an array looks like in Perl 6?" would probably not be of much general interest.

    Yeah, I guess I could start poring over the Synopses and figuring them out. But at that point I'd have invested some substantial time when all I really had been curious about was what the Perl 6 rudiments looked like.

    I guess I'm your typical "on the fence customer". If I can quickly see how easy things are easily done in Perl 6, then maybe I'll put in some time and give it a try. But at the moment, Perl 5 is working for me, and it's not easy to make free time, so I'll probably pass.