in reply to Re^5: Can't call method "foo" on unblessed reference
in thread Can't call method "foo" on unblessed reference

Thanks Roy!

I have gotten rid of my "Can't call method ... unblessed ref." error. It appears that I was not making copies of the hole objects correctly. Here's what I was doing ...
sub makeLinks { ... my @nholes = (); for my $nh ($obj->{'board'}->getHoles()) { my %newHole = %$_; push ( @nholes, \%newHole ); } ... }
... and here's what I did to get rid of the error ...
sub makeLinks { ... my @nholes = (); for my $nh ($obj->{'board'}->getHoles()) { push ( @nholes, new hole ( $nh->{'peg'}, $nh->{'holeIndex'}, $ +nh->{'level'}, $nh->{'links'} )); } ... }

Plankton: 1% Evil, 99% Hot Gas.