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.

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

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

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
        Miscellaneous Functions
    Functions in alphabetical order

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!