I.T. Discussion Community!
-Collapse +Expand
Perl
Search Perl Group:

Advanced
-Collapse +Expand Perl To/From
To/FromCODEGuides
-Collapse +Expand Perl Store
PRESTWOODSTORE

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► KBWebsite Scri...PerlLanguage Ref...   Print This     
Part of the mo. lesson in the Feb 15 Issue of Prestwood eMag
Perl Code Snippet:
 A flashcard from our Perl Flashcards Library
 A code snippet from our Perl Code Snippets Page
Perl Associative Array (% Array Preface)

General Info: Associative Array

A set of unique keys linked to a set of values. Each unique key is associated with a value. Think of it as a two column table. MyArray['CA'] = 'California' MyArray['AR'] = 'Arizona'

Languages Focus: Associative Array

Associative arrays are also known as a dictionary or a hash table in other languages.

Perl Associative Array


my %weekdays = (
'Sun' => 'Sunday',
'Mon' => 'Monday',
'Tue' => 'Tuesday',
'Wed' => 'Wednesday',
'Thu' => 'Thursday',
'Fri' => 'Friday',
'Sat' => 'Saturday',
);
my $day_of_the_week = $weekdays{'Mon'};

More Info

Definition:  Associative Array

Comments

1 Comments.
Share a thought or comment...
Comment 1 of 2

Understanding Associative Array is not that easy which mostly programmers think. It took two months of leanrning and praciticng Associative Array. You need to get essay writing expert help to complete your work on time. So, various programmers must think about what should they plan ahead.

Posted 41 days ago

Comment 2 of 2

MyAssignmenthelpAu.com believes in the ability of learning and translating that learning into rapid actions, which is our ultimate competitive advantage. We cater to all the Business Law Assignment Help needs of the students so that they receive the right guidance towards approaching the assignments, which is a big help for them to move forward in their academics.
More information:- Assignment help

Posted 40 days ago
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P154A1
Enter key:
Code Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #101519 Counter
9138
Since 11/4/2008

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech