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

Re^3: String sorting in Perl

by Laurent_R (Abbot)
on Jun 04, 2014 at 17:48 UTC ( #1088700=note: print w/replies, xml ) Need Help??


in reply to Re^2: String sorting in Perl
in thread String sorting in Perl

Yes, Limbic~Region, you're right ++, that's why I updated the post immediately after I posted it, but you saw it before I posted the change. Having said that, my understanding on how the sort should be carried out is not exactly the same as yours (I explained it in my update).

Replies are listed 'Best First'.
Re^4: String sorting in Perl
by Limbic~Region (Chancellor) on Jun 04, 2014 at 18:06 UTC
    Laurent_R,
    The code should get the counts, order them with the highest counts first, then move to the next value.

    I didn't see anything that implied shorter strings should come first but I agree that "move to the next value" is fairly ambiguous.

    Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1088700]
help
Chatterbox?
[shmem]: some experience with vim?
[Lady_Aleena]: None
[shmem]: I don't know geany, and don't know whether it has support for ctags.
[Lady_Aleena]: ctags?
[shmem]: ctags is a program which (recursively) extracts the symbols from source and stores them in a one-file database. This allows you to query the locations where these symbols (e.g. a subroutine name) are used anywhere in the source code tree...
[shmem]: ...from inside the editor.
[shmem]: apt-get install exuberant-ctags
[Lady_Aleena]: I think I heard vim has a big learning curve.
[shmem]: then in the root of your source tree run: ctags -R
[shmem]: you get a file named tags where all symbols and the places where they are used are listed

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-04-27 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (505 votes). Check out past polls.