1. Home
  2. Computing & Technology
  3. Perl

Hash

From About.com

Definition: A hash in perl is an ordered group of scalars. They are contained in a set of key / value pairs. Each value can be accessed by it's corresponding key. The hash is assigned an array name, preceded by the % character. The array name may only contain letters, numbers, or the underscore character.
%sampleHash = ("name" => "Larry", "phone" => "111-111-1111");
Explore Perl
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Perl
  4. Perl Tutorials
  5. Perl Glossary
  6. Hash

©2009 About.com, a part of The New York Times Company.

All rights reserved.