469,338 Members | 8,424 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

How can I use hashmap in perl?

Hi,

How can I create hashmap object and how do i put the values in hashmap in perl.
First of all is it possible or not?
Sep 3 '07 #1
3 9550
KevinADC
4,059 Expert 2GB
There is no such thing as a hashmap in perl, maybe you are confusing the teminology with java or something else. You can create a hash with perl and use the hash for whataver you need. But your question is too vague to answer and I see you have cross-posted this question with much more detail on another forum so continuing the discussion here is not going to be productive. Here is a link for beginning perl coders:

http://www.perl.org/books/beginning-perl/
Sep 3 '07 #2
numberwhun
3,503 Expert Mod 2GB
Heck, if you are going to cross post, the least you could do is post the same information instead of expecting the experts here to read your mind about what you want to do. Its only fair you know. But, I fully agree with Kevin that you shouldn't be cross posting. Many of us tend to read multiple forums and are pretty good at noticing a cross post.

Regards,

Jeff
Sep 3 '07 #3
@bhavanirayala
You can create hashmap as
my %myhash=();

Populate as
$myhash{ 'key' } = 'value'; # hash

Get value
$value = $myhash{ 'key' };
Jul 27 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by dougjrs | last post: by
1 post views Thread by Christian Gollwitzer | last post: by
4 posts views Thread by David | last post: by
2 posts views Thread by xor | last post: by
4 posts views Thread by panos100m | last post: by
15 posts views Thread by lbrtchx | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.