CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Identical key names in hash array?: Edit Log



CPS
Novice

Oct 30, 2012, 10:07 AM


Views: 1815
Identical key names in hash array?

Hello,

As you know hash array keys are unique, and in order to retrieve some value you have to provide key name.

I have following hash array:
KEY <---> VALUE
"AAA" 50
"BBB" 40
"CCC" 90
"BBB" 65

As you can see there are same "BBB" keys. However they have different values.

Is it possible to gather both some way ?
Do i need to declare hash array in some special way?

If it's a question for beginners then... sorry :) please move this thread there :)


(This post was edited by CPS on Oct 30, 2012, 10:09 AM)


Edit Log:
Post edited by CPS (Novice) on Oct 30, 2012, 10:09 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives