[Chicago-talk] Odd HoH bug/problem

Randal L. Schwartz merlyn at stonehenge.com
Tue Sep 11 11:47:46 PDT 2012

>>>>> "Shawn" == Shawn Carroll <shawn.c.carroll at gmail.com> writes:

Shawn> Let me preface this by saying that I have not been able to reproduce
Shawn> this problem in a smaller program and I understand that this makes it
Shawn> less useful for identifying the root cause.

Shawn> In my program I create a HoHoH and need to step through in a final
Shawn> sub.  As I've done many times in the past I use a while block and use
Shawn> each to assign the key & value to loop variables.

Shawn> 	while( my ($id, $types) =  each %data )
Shawn> 	{
Shawn> 		say "$id => $types";
Shawn> 		while ( my ($type, $data) = each %{ $types })
Shawn> 		{
Shawn> 			my $callPuts = $strikes->{$callPut};
Shawn> 		#	say "$instrumentID -> $callPut";

Is there a question?  Hit send too quickly?
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion

More information about the Chicago-talk mailing list