Your function doesn't have an explicit return so the return value is value returnd by the last statement, which is print , which returns true on success.
Therefore, put a return 0; into the last line of your printsub subroutine.
In reply to Re: Need help with Tree::Nary
by matija
in thread Need help with Tree::Nary
by ido50
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |