Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 489017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:45:58+00:00 2026-05-13T01:45:58+00:00

As per subject: what are the characters that can be used in hash keys

  • 0

As per subject: what are the characters that can be used in hash keys or, if it’s shorter, which ones can’t be used?

Also, are there any problems in using long hash keys (like full path names)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:45:58+00:00Added an answer on May 13, 2026 at 1:45 am

    See How Hashes Really Work for a discussion on this topic. In short, as long as you quote the key (non-interpolating q{}), you can use whatever characters you want.

    Regarding Dana’s answer, no, it won’t take longer for longer keys to get matched: it will take infinitesimally longer to hash the key, but that’s all.

    For reference, this is the hashing function in Perl 5.10.0:

    #define PERL_HASH(hash,str,len)
     STMT_START {
        register const char * const s_PeRlHaSh_tmp = str;
        register const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp;
        register I32 i_PeRlHaSh = len;
        register U32 hash_PeRlHaSh = PERL_HASH_SEED;
        while (i_PeRlHaSh--) {
            hash_PeRlHaSh += *s_PeRlHaSh++;
            hash_PeRlHaSh += (hash_PeRlHaSh << 10);
            hash_PeRlHaSh ^= (hash_PeRlHaSh >> 6);
        }
        hash_PeRlHaSh += (hash_PeRlHaSh << 3);
        hash_PeRlHaSh ^= (hash_PeRlHaSh >> 11);
        (hash) = (hash_PeRlHaSh + (hash_PeRlHaSh << 15));
    } STMT_END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per subject. I have some constants hash defined like so: #define CONST 40
As per the subject - is there an API to get the MCC/MNC on
Per the subject... I made a Setup.exe with Inno Setup which is supposed to
As per subject which one overrides other? executionTimeout in web.config or Connection Time-out property
As per subject, how can I check whether an object is an NSArray or
Per a client's request I have written a communication class that inherits from webclient.
Have I missed anything? Are there any additional steps storing passwords to the DB?
Possible Duplicate: In SQL, what's the difference between count(column) and count(*)? As per subject,
I've seen a number of posts on this subject, but none that leave me
I know the term Load Balancing can be very broad, but the subject I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.