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: Beginner:
How to Check for a key in a multilevel hash

 



Tejas
User

May 30, 2014, 1:17 AM

Post #1 of 3 (2765 views)
How to Check for a key in a multilevel hash Can't Post

Hi

Here is my hash

Code
hash{123}{ABC}{22.47}{ID}{ID1} = 1; 
hash1{123}{ABC}{22.44}{ID}{1D1}

I actually want to compare two hashes
And comparision would not be true as all of them are not matching.
And i would like to know why it is not matching,
In this example just because amount is less by .3 rs its not matching.So, Due to amount this is mismatched else all are good to go.

Quote

i would just like to check whether all keys exists or not,
if they dont what column is making the comaprision false.
As in this example everything is equal just the amount is wrong.
So Each of them have to be compares and what levels are true and what level is false has to be considered.

Is there anyway to just check this key

Thanks
Tejashttp://


(This post was edited by Tejas on May 30, 2014, 1:28 AM)


Laurent_R
Veteran / Moderator

May 30, 2014, 7:45 AM

Post #2 of 3 (2687 views)
Re: [Tejas] How to Check for a key in a multilevel hash [In reply to] Can't Post

Given my answers to this post http://perlguru.com/gforum.cgi?post=78755;sb=post_latest_reply;so=ASC;forum_view=forum_view_collapsed;;page=unread#unread of yours, I would guess you probably no longer need what you asked for here.


Tejas
User

May 30, 2014, 8:06 AM

Post #3 of 3 (2684 views)
Re: [Laurent_R] How to Check for a key in a multilevel hash [In reply to] Can't Post

Yes Sir

Thanks

 
 


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

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