programming-examples/perl/Hash
2019-11-15 12:59:38 +01:00
..
Accessing Elements.pl Initial commit 2019-11-15 12:59:38 +01:00
Adding elements to a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
An associative array, called a hash, is an unordered list of key-value pairs, indexed by strings.pl Initial commit 2019-11-15 12:59:38 +01:00
Anonymous Hash References.pl Initial commit 2019-11-15 12:59:38 +01:00
Associative arrays are indexed by string values.pl Initial commit 2019-11-15 12:59:38 +01:00
Associative arrays or hashes.pl Initial commit 2019-11-15 12:59:38 +01:00
Building a Price List.pl Initial commit 2019-11-15 12:59:38 +01:00
Check key existance after using 'delete' operator.pl Initial commit 2019-11-15 12:59:38 +01:00
Converting a hash into an array by simple assignment.pl Initial commit 2019-11-15 12:59:38 +01:00
Create hash from scalar variable.pl Initial commit 2019-11-15 12:59:38 +01:00
Create hash with arrow operator.pl Initial commit 2019-11-15 12:59:38 +01:00
Create hash with qw.pl Initial commit 2019-11-15 12:59:38 +01:00
Create hash without using the quotation marks.pl Initial commit 2019-11-15 12:59:38 +01:00
Creating and accessing hash elements.pl Initial commit 2019-11-15 12:59:38 +01:00
Delete an entry in hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Delete from hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Delete the element with key 'Joe' from %hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Demonstrating hash slices.pl Initial commit 2019-11-15 12:59:38 +01:00
Dereferencing hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Determine if a particular key exists.pl Initial commit 2019-11-15 12:59:38 +01:00
Determine if the value for the key is defined.pl Initial commit 2019-11-15 12:59:38 +01:00
Determine if the value for the key is true or false.pl Initial commit 2019-11-15 12:59:38 +01:00
Display a hash with print.pl Initial commit 2019-11-15 12:59:38 +01:00
Display the list of values.pl Initial commit 2019-11-15 12:59:38 +01:00
Dump the hash.pl Initial commit 2019-11-15 12:59:38 +01:00
each function returns both key and value in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Each function.pl Initial commit 2019-11-15 12:59:38 +01:00
Empty hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Get hash value by using the hash reference.pl Initial commit 2019-11-15 12:59:38 +01:00
Get key value pair through hash reference.pl Initial commit 2019-11-15 12:59:38 +01:00
Hard References-Pointers.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash (Associative Array) Functions- The keys function returns, in random order, the keys of a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash example.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash hash overwrites.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash Key and Value Retrieval.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash Key-Value Pair Retrieval.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash List Assignment.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash map creation.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash of Hashes with Lists of Values.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash of Hashes.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash of list.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash References.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash setting and getting.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash Slices.pl Initial commit 2019-11-15 12:59:38 +01:00
Hash Value Sorting.pl Initial commit 2019-11-15 12:59:38 +01:00
Hashes Assignment in action.pl Initial commit 2019-11-15 12:59:38 +01:00
Hashes- An associative array.pl Initial commit 2019-11-15 12:59:38 +01:00
If an entry exist.pl Initial commit 2019-11-15 12:59:38 +01:00
Is a key defined in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Is a key in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Is hash key defined and existed.pl Initial commit 2019-11-15 12:59:38 +01:00
Iterate hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Join hash key.pl Initial commit 2019-11-15 12:59:38 +01:00
Keys function is used to get all keys in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
List context and hash context.pl Initial commit 2019-11-15 12:59:38 +01:00
List of hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Lists the contents of an associative array using the values function.pl Initial commit 2019-11-15 12:59:38 +01:00
Lock value and keys.pl Initial commit 2019-11-15 12:59:38 +01:00
Loop through an associative array While loop.pl Initial commit 2019-11-15 12:59:38 +01:00
Loop through an associative array.pl Initial commit 2019-11-15 12:59:38 +01:00
Looping Over A Hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Merge two hash variable.pl Initial commit 2019-11-15 12:59:38 +01:00
Mix scalar, list and hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Nested hashes.pl Initial commit 2019-11-15 12:59:38 +01:00
Numerically Sort a Hash by Values in Ascending Order.pl Initial commit 2019-11-15 12:59:38 +01:00
Numerically Sort a Hash by Values in Descending Order.pl Initial commit 2019-11-15 12:59:38 +01:00
Obtain the list of hashKeys and display each key-value pair.pl Initial commit 2019-11-15 12:59:38 +01:00
Obtain the list of keys and display each key-value pair.pl Initial commit 2019-11-15 12:59:38 +01:00
Ordered hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Output nested hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Pass key and get value.pl Initial commit 2019-11-15 12:59:38 +01:00
Print mixed structure.pl Initial commit 2019-11-15 12:59:38 +01:00
Reference a non-exist hash value.pl Initial commit 2019-11-15 12:59:38 +01:00
Reference for hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Reference one value in hash by its key in print statement.pl Initial commit 2019-11-15 12:59:38 +01:00
Reverse a hash- use key as the value, and value as the key.pl Initial commit 2019-11-15 12:59:38 +01:00
Reverse a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Reverse the hash and use function each to get each pair.pl Initial commit 2019-11-15 12:59:38 +01:00
Reverse the key and value.pl Initial commit 2019-11-15 12:59:38 +01:00
Setting values into a hash named %hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Sort Hash by Keys in Reverse Order.pl Initial commit 2019-11-15 12:59:38 +01:00
Sort Hash by Keys Numerically.pl Initial commit 2019-11-15 12:59:38 +01:00
Sort keys in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Sort values in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Sorting a Hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Store color value in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
The delete Function.pl Initial commit 2019-11-15 12:59:38 +01:00
The delete operator removes a key-value pair from an associative array.pl Initial commit 2019-11-15 12:59:38 +01:00
The each function returns, in random order, a two-element array- the key and the value of a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
The exists function returns true if a hash key (or array index) has been defined, and false if not.pl Initial commit 2019-11-15 12:59:38 +01:00
The keys operator returns a list of all the key names within a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
The values function returns, in random order, an array consisting of all the values of a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
To tell if a given key name exists in a hash, you can use the exists operator.pl Initial commit 2019-11-15 12:59:38 +01:00
Use hash as an array.pl Initial commit 2019-11-15 12:59:38 +01:00
Using 'if exists' to check the entry in hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using array as the hash value.pl Initial commit 2019-11-15 12:59:38 +01:00
Using arrow opertor with hash reference variable.pl Initial commit 2019-11-15 12:59:38 +01:00
Using customized function to sort keys in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using each function with hash reference.pl Initial commit 2019-11-15 12:59:38 +01:00
Using each to get key and value pair from hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using foreach loops with hashes.pl Initial commit 2019-11-15 12:59:38 +01:00
Using hash as the hash value.pl Initial commit 2019-11-15 12:59:38 +01:00
Using hash reference to retrieve value from hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using keys function with hash reference variable.pl Initial commit 2019-11-15 12:59:38 +01:00
Using map with hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using references to a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using the array as the hash value.pl Initial commit 2019-11-15 12:59:38 +01:00
Using the arrow operator.pl Initial commit 2019-11-15 12:59:38 +01:00
Using the each operator to extract a key-value pair as a list from the hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using values function to get all value in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using variable as the key to get the value stored in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Using while and each function to output value in a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
Values operator extracts all the values of a hash.pl Initial commit 2019-11-15 12:59:38 +01:00
While loop and hash key value pair.pl Initial commit 2019-11-15 12:59:38 +01:00
Working join with map.pl Initial commit 2019-11-15 12:59:38 +01:00