#hash
Showing 25 pages (tag pages are not indexed).
- one-liners • intermediateHow to print unique lines with perl one-liner?
- text-processing • beginnerHow to count word frequency in a text file using Perl?
- text-processing • beginnerHow to remove duplicate lines from a file in Perl?
- serialization • beginnerHow to convert Perl hash to YAML string?
- serialization • beginnerHow to encode Perl hash to JSON using JSON module?
- subroutines • intermediateHow to pass hashes to subroutines in Perl?
- control-flow • beginnerHow to use foreach loop to iterate over hash keys in Perl?
- data-structures • advancedHow to create a hash of arrays in Perl?
- data-structures • advancedHow to create an array of hashes in Perl?
- data-structures • advancedHow to sort hash by values in Perl?
- data-structures • intermediateHow to sort hash keys in Perl?
- data-structures • intermediateHow to merge two hashes in Perl?
- data-structures • intermediateHow to invert a hash (swap keys and values) in Perl?
- data-structures • intermediateHow to create a hash from two arrays in Perl?
- variables • advancedHow to use autovivification with hash references in Perl?
- variables • advancedHow to create a nested hash structure in Perl?
- variables • intermediateHow to use the each() function to iterate over a hash in Perl?
- variables • beginnerHow to get all values from a hash in Perl?
- variables • beginnerHow to get all keys from a hash in Perl?
- variables • beginnerHow to delete a hash key in Perl?
- variables • beginnerHow to check if a hash key exists in Perl?
- variables • intermediateHow to iterate over hash keys using a reference in Perl?
- variables • intermediateHow to create an anonymous hash in Perl?
- variables • intermediateHow to dereference a hash reference in Perl?
- variables • beginnerHow to initialize a hash in Perl with key-value pairs?