Perl Hash Functions



The Perl hash functions are one of the most important category of the built-in Perl functions. The Perl language supplies a lot of functions to manipulate hashes.


Click Below to See the Best

Perl How-to Snippet Collection

and Save Hours of Surfing on Internet!


Follow the links below to see how to use a few of them.

deleteremoves a key-value pair from a hash; you can delete an individual element of a hash or a hash slice.
eachreturns a two-element list that contains a (key, value) pair from a hash or a (index, value) pair from an array
existsit checks whether a particular hash/array element or a subroutine exists
keysuse this function to get the indices of an array or the keys of a hash
valuesuse this function to get the values of an array or a hash


A-N-Y-O-N-E Can Learn and Master Perl!
And That Includes YOU!


Check these how-to tutorial eBooks (PDF format):


Table of Contents:

A Perl Script
Install Perl
Running Perl
Perl Data Types
Perl Variables
Perl Operators
Perl Lists
Perl Arrays
    Array Size
    Array Length
Perl Hashes
Perl Statements
    Perl if
    Perl unless
    Perl switch
    Perl while
    Perl do-while
    Perl until
    Perl do-until
    Perl for
    Perl foreach
Built-in Perl Functions
    Functions by Category
        String Functions
        Regular Expressions and Pattern Matching
        List Functions
        Array Functions
        Hash Functions (more)
        Miscellaneous Functions
    Functions in alphabetical order
        chomp
        chop
        chr
        crypt
        defined
        delete
        each
        exists
        grep
        hex
        index
        join
        keys
        lc
        lcfirst
        length
        map
        oct
        ord
        pack
        pop
        push
        q
        qq
        qw
        reverse
        rindex
        scalar
        shift
        sort
        splice
        split
        sprintf
        substr
        tr
        uc
        ucfirst
        undef
        unpack
        unshift
        values

return from Perl Hash Functions to Perl Basics



Would you like to create your own website like this one?
Hit the Alarm Clock!

Site Build It!