Try to change this:
to something like this:if($$tree->{left} == undef || $$tree->{right} == undef) { return; }
return unless defined $$tree->{left} and defined $$tree->{right};
In reply to Re: Tree Data Structure
by Laurent_R
in thread Tree Data Structure
by code-ninja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |