How can I get what hashmap maps to in Perl ?

Hi,
In Perl when I do:

print($ssc);

Open in new window


I get the following:

HASH(0x1422640)

Open in new window


How can I get exactly what it writes there?

Thanks,

TolgarAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
have a browse thru here
http://perlmonks.org/?node_id=471590
0
 
CEHJCommented:
What exactly has this to do with Java?
0
 
TolgarAuthor Commented:
You are right. Nothing related with Java. But maybe only related with hashmap knowledge in general.

Thanks,
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
TolgarAuthor Commented:
great,

thanks,
0
 
TolgarAuthor Commented:
I have a followup question on this issue:

In my PERL code the following line :

print Dumper $ssc->{'myStates'};

Open in new window


returns:

$VAR1 = [
          bless( {
                   'priority' => 'Unset',
                   'owner' => 'Unassigned',
                   'required' => 'ABCD',
                   'status' => 'Completed',
                 }, 'gState' )
        ];

Open in new window


How can I extract the 'status' from this output in Perl?

Thanks,
0
 
wilcoxonCommented:
print $ssc->{myStates}[0]{status};

If you have more than one instance of gState, you'll need to loop over the items (or something similar) to get all of the status.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.