Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: RFC:A brief tutorial on Perl's native sorting facilities.

by shmem (Chancellor)
on Feb 07, 2007 at 09:52 UTC ( [id://598719]=note: print w/replies, xml ) Need Help??


in reply to RFC:A brief tutorial on Perl's native sorting facilities.

Fine post. Some random nits...
That it is about as fast as you are likely to get; that it is built-in to language so always available; and that it understands Perl internals; does.

I fail to parse that sentence. I also fail to parse the updated version:

That it is about as fast as you are likely to get, it is built-in to language so always available, and it understands Perl internals, do.

What does the final ",do" do?

So, sorting data when you want to sort according the the entire value of each element of the array or list is easy.

I'd rather not use the statement-modifier mode here, instead I'd say (s/the the/the/):

So, sorting data is easy when you want to sort according the entire value of each element of the array or list.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re: RFC:A brief tutorial on Perl's native sorting facilities.

Replies are listed 'Best First'.
Re^2: RFC:A brief tutorial on Perl's native sorting facilities.
by BrowserUk (Patriarch) on Feb 07, 2007 at 11:39 UTC

    Okay shmem. That first sentence was always a mess, and correcting the grammer whilst leaving the structure intact didn't help much. Is this any better?

    How sort actually works internally doesn't really matter. What does matter is that being built-in to the language, it understands Perl's internals, is always available and about as fast as you are likely to achieve.

    s/the the/the/ should be s/the the/to the/. That I haven't noticed this before, having now read and re-read this dozens of times, does not surprise me. That many other pairs of eyes have looked right past this, does. Welcome to my world.

    Corrections made. Thanks.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      How sort actually works internally doesn't really matter. What does matter is that being built-in to the language, it understands Perl's internals, is always available and about as fast as you are likely to achieve.

      Nice. Now I've got it - the "..., does." was refering to the "doesn't matter" from the previous sentence. Anyways - it's way clearer now.

      That I haven't noticed this before, having now read and re-read this dozens of times, does not surprise me. That many other pairs of eyes have looked right past this, does. Welcome to my world.
      clap, clap, thank you - having stuttered as a child I just stumble over repeated words. And, good you showed me the "...,does." construct again ;-)

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-09-20 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (26 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.