Hash

Updated: 05/19/2017 by Computer Hope

A hash may refer to any of the following:

hash definition1. When referring to Perl, a hash is an associative array. Hashes have a % prefix and contain a listing of keys and values. Below is an example of a basic Perl hash.

my %hope = ("hardware", "Monitor", "software", "office");
print "Hardware hash = $hope{hardware}\n";

In the above example, the program sets the hash table and then prints the hardware hash, which is equal to the next element in the hash. Therefore, the program would print "Hardware hash = Monitor".

2. A hash is also another word for Octothorpe ( # ).

3. Linux command; see the hash command page for additional information about this command.

4. When referring to a database or encryption, see our hashing definition for further information on these terms.

5. FTP command that turns on/off the displaying of a hash mark ( # ) for each 1024 bytes of data received when getting a file. See the how to use FTP help page for information about hash and other FTP commands.

Hashing, Hashtag, Percent, Programming terms