Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
Hash setting and getting : Hash Value « Hash « Perl
Perl
Hash
Hash Value
Hash setting and getting
$hash{name} =
"AAA"
; print $hash{name};
Related examples in the same category
1.
Associative arrays are indexed by string values.
2.
Building a Price List
3.
Using array as the hash value
4.
Using the array as the hash value
5.
Store color value in a hash
6.
Accessing Elements
7.
Adding elements to a hash