in reply to sorting type question- space problems

Maybe merely a nitpick, but it sure is nice when the code, data and comments are consistent with themselves (and match the narrative exposition though that's not relevant in this case):

key1... key1... key43... key1... key2.... - i believe the structure is clear: - there are two keys - ....

Maybe you're using zero-based counting?

perl -E "my @keys = qw/1 2 43/; say $_ for( @keys); say \"count of \$# +keys: $#keys\";" 1 2 43 count of $#keys: 2

Accuracy in your post makes it easier for us to help!

Replies are listed 'Best First'.
Re^2: sorting type question- space problems (semi-OT)
by hdb (Monsignor) on Sep 14, 2013 at 14:42 UTC

    You are counting possible values of keys...