Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Passing two arrays to a subroutine

by wfsp (Abbot)
on Sep 27, 2010 at 12:25 UTC ( [id://862196]=note: print w/replies, xml ) Need Help??


in reply to [Perl 6] Re: Passing two arrays to a subroutine
in thread Passing two arrays to a subroutine

moritz,

I know you're doing a lot of work on the Perl6 project and keen to raise its profile which is, I'm sure, why you posted that snippet.

Sadly, I'm not sure what it will achieve. I'd grade myself somewhere between senior novice and junior intermediate and that snippet leaves me cold. Many, if not most, Perl5 coders probably have a similar feeling. "So what?", you'd be entitled to ask, and it would be a fair question.

If anyone had a question about a Perl6 script would they come to the Monastery? I can't remember seeing any (but I could be wrong on that).

Anyhows, it may be worth posting a meditation on the relationship between the Monastery and Perl6 to start a discussion on the subject. It is a different language isn't it? I'd be intrested to hear what other monks think. Wouldn't it be best if a Perl6er kicked it off (he says passing the buck)?

Oh, and I can give you a tip for Perl6: Hurry up. :-)

  • Comment on Re^2: Passing two arrays to a subroutine

Replies are listed 'Best First'.
Re^3: Passing two arrays to a subroutine
by tirwhan (Abbot) on Sep 27, 2010 at 13:31 UTC

    FWIW, I personally find these posted snippets and alternative solutions in Perl 6 interesting. For someone who doesn't have the time or inclination to fully delve into the project (yet), they can serve as a sort of recurring flag, to show that Perl 6 has already achieved much, you can do interesting stuff in it and it's still going ahead.


    All dogma is stupid.
Re^3: Passing two arrays to a subroutine
by tinita (Parson) on Sep 27, 2010 at 12:34 UTC

    maybe we could use the post title to mark such posts. it might not be interesting to perl5 users, it might also not be interesting to perl 6 users, but it's definitely interesting for those who know perl5 and learn perl 6.

    if we mark such posts with something like "perl5 vs perl6" in the title it might become a nice collection of examples what perl5 users want to learn about perl 6.

Re^3: Passing two arrays to a subroutine
by moritz (Cardinal) on Sep 27, 2010 at 14:10 UTC
    "So what?", you'd be entitled to ask, and it would be a fair question.

    Of course it is a fair question. And the simple answer is that I educate people about Perl. Which is what this site is all about, after all.

    If anyone had a question about a Perl6 script would they come to the Monastery? I can't remember seeing any (but I could be wrong on that).

    Having tried to answer most of them, I have noticed them. Maybe you need to take a second look, or raise your awareness.

    Anyhows, it may be worth posting a meditation on the relationship between the Monastery and Perl6 to start a discussion on the subject.

    You mean like Re: What is the scope of Perl Monks?? or maybe New PerlMonks for Perl 6 - A Good Idea?

    It is a different language isn't it?

    It's a different language than Perl 5, and still Perl.

    Perl 6 - links to (nearly) everything that is Perl 6.
Re^3: Passing two arrays to a subroutine
by eyepopslikeamosquito (Archbishop) on Sep 28, 2010 at 11:00 UTC

    I really enjoy moritz's Perl 6 responses. I think they're a practical and effective way to promote the language.

    You might even see moritz as a modern day merlyn. :) You see, twenty years ago merlyn loved Perl 3 so much that he insisted on answering requests for Unix shell/sed/awk help with snippets of Perl code. So much so that many posters resorted to inserting "No Perl please" in their posts! As you might expect, this only provoked him further, and the barrage of Perl 3 snippet responses intensified.

Re^3: Passing two arrays to a subroutine
by bluescreen (Friar) on Sep 27, 2010 at 13:25 UTC

    I don't want to sound jerk, but what's wrong about Mortiz's answer? How many times somebody asks something and we say "use shell script for that", "use this module instead of that other module" or "do it in C" ?

    Is up to the person that makes the question to pick the best answer for his/her problem - remember TIMTOWTDI. You can just ignore those answers you don't like.

    On the other hand P5 and P6 share *almost* the same community ( fortunately ) so its perfectly fine to me to use the same tools - in this case the perlmonks - to discuss ideas, post snippets and suggest possible solutions.

Re^3: Passing two arrays to a subroutine
by TomDLux (Vicar) on Sep 27, 2010 at 16:42 UTC

    As someone who had a Perl6 question, I went to IRC and to the Monastery. moritz told me about KeySet, which will be the exact solution to my problem, once it works. In the meantime, I'm using a plain old hash.

    In my trivial perl6 sudoku-solver, I do pass multiple arrays into a routine.

    On the other hand, while the knowledge that it will be available might raise excitement for the metamorphosis of the rudimentary Perl6 into a hallucinogenic butterfly, it isn't really relevant to this week's requirements, is it?

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Re^3: Passing two arrays to a subroutine
by chromatic (Archbishop) on Sep 27, 2010 at 18:07 UTC
    I'd grade myself somewhere between senior novice and junior intermediate and that snippet leaves me cold.

    Do you like using explicit references? (I didn't ask "Do you like the effect you get when you must use explicit references in Perl 5?") Me, I won't miss them. Roll on Perl 6.

Re^3: Passing two arrays to a subroutine
by cdarke (Prior) on Sep 28, 2010 at 19:55 UTC
    I for one have asked several questions aabout Perl 6 and, so far as I can recall, moritz (among other monks) gave clear and accurate answers to them all. I have seen quite a few questions about Perl 6 from others as well, and probably missed more.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://862196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found