IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Perl
Search Perl Group:

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

Prestwood eMagazine

July 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 3

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 49 months ago

Comment 2 of 3

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 49 months ago

Comment 3 of 3

Thank you for sharing Perl Associative Arrays. I really need it. If you also like to play Drift Boss then try it with me

Posted 31 months 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 = P1126A1
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
10919
Since 11/4/2008
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2024 Prestwood IT Solutions.   [Security & Privacy]