you call holes::new and insert it into @$holes? Is it possible for $obj->{'holes'} to return a reference to undef?unless ( $holes ) { # # create the holes # ... }
Nothing else suggests itself at the moment.
In reply to Re^3: Can't call method "foo" on unblessed reference
by Roy Johnson
in thread Can't call method "foo" on unblessed reference
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |